[issue18492] Allow all resources if not running under regrtest.py

Zachary Ware report at bugs.python.org
Wed May 7 19:29:40 CEST 2014


Zachary Ware added the comment:

Here's a new and better patch.  This patch keeps the regrtest_run global in support and moves the regrtest-or-not check into is_resource_enabled to make is_resource_enabled, requires, and requires_resource consistent with each other and in a way that still allows explicitly setting support.use_resources.  The real change is confined to Lib/test/regrtest.py and Lib/test/support/__init__.py, the rest of the patch is cleanup allowed by the change (except for test_decimal, which has a minor change required to allow one of the command line options to that script to work).

----------
title: Add test.support.regrtest_run flag, simplify support.requires -> Allow all resources if not running under regrtest.py
versions: +Python 2.7, Python 3.5 -Python 3.3
Added file: http://bugs.python.org/file35171/issue18492.v2.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18492>
_______________________________________


More information about the Python-bugs-list mailing list