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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18492>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to