[Python-3000-checkins] r56339 - python/branches/p3yk/Lib/test/regrtest.py
georg.brandl
python-3000-checkins at python.org
Fri Jul 13 12:07:25 CEST 2007
Author: georg.brandl
Date: Fri Jul 13 12:07:25 2007
New Revision: 56339
Modified:
python/branches/p3yk/Lib/test/regrtest.py
Log:
Fix #1753310: regrtest -x doesn't work anymore
Modified: python/branches/p3yk/Lib/test/regrtest.py
==============================================================================
--- python/branches/p3yk/Lib/test/regrtest.py (original)
+++ python/branches/p3yk/Lib/test/regrtest.py Fri Jul 13 12:07:25 2007
@@ -335,12 +335,12 @@
tests = map(removepy, tests)
stdtests = STDTESTS[:]
- nottests = NOTTESTS[:]
+ nottests = NOTTESTS.copy()
if exclude:
for arg in args:
if arg in stdtests:
stdtests.remove(arg)
- nottests[:0] = args
+ nottests.add(arg)
args = []
tests = tests or args or findtests(testdir, stdtests, nottests)
if single:
@@ -478,14 +478,14 @@
'test_unittest',
'test_doctest',
'test_doctest2',
- ]
+]
-NOTTESTS = [
+NOTTESTS = {
'test_support',
'test_future1',
'test_future2',
'test_future3',
- ]
+}
def findtests(testdir=None, stdtests=STDTESTS, nottests=NOTTESTS):
"""Return a list of all applicable test modules."""
More information about the Python-3000-checkins
mailing list