Re: [Python-Dev] [Python-3000] the release gods are angry at python

On 26/03/2008, Thomas Heller <theller@ctypes.org> wrote:
What I would like to see is a way to disable certain tests on certain machines; maybe by setting environment variables?
Could this be done by something like the following (completely untested!!!! no time at the moment) change to regrtest.py? --- Lib\test\regrtest.py.orig 2008-03-26 15:36:24.519590600 +0000 +++ Lib\test\regrtest.py 2008-03-26 16:02:52.513001800 +0000 @@ -341,6 +341,12 @@ stdtests.remove(arg) nottests[:0] = args args = [] + + exclusions = os.getenv('EXCLUDE_TESTS').split() + for excl in exclusions: + if excl in stdtests: + stdtests.remove(excl) + tests = tests or args or findtests(testdir, stdtests, nottests) if single: tests = tests[:1] Paul.
participants (1)
-
Paul Moore