On 26/03/2008, Thomas Heller <[EMAIL PROTECTED]> 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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com