summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-25 12:29:08 (GMT)
committerGuido van Rossum <guido@python.org>1998-08-25 12:29:08 (GMT)
commit6c74fea07d42ac6bc3bc078fb13f903f6cdbbcb9 (patch)
tree92e38450caf65c8b8f1a4612035a4724d9c33edc /Lib/test
parent5fdf85254c1438760efb452de0fdb1774f29d783 (diff)
downloadcpython-6c74fea07d42ac6bc3bc078fb13f903f6cdbbcb9.zip
cpython-6c74fea07d42ac6bc3bc078fb13f903f6cdbbcb9.tar.gz
cpython-6c74fea07d42ac6bc3bc078fb13f903f6cdbbcb9.tar.bz2
There was still something wrong. The original NOTTESTS are replaced
by the new '-x' arguments, losing the previous items. Thus, test_support, test_b1 & test_b2 are executed (and warnings issued). (Discovered by Vladimir Marangozov.)
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/regrtest.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 9a890a8..5944f8f 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -72,10 +72,13 @@ def main(tests=None, testdir=None):
# Strip trailing ".py" from arguments
if args[i][-3:] == '.py':
args[i] = args[i][:-3]
- stdtests = STDTESTS
- nottests = NOTTESTS
+ stdtests = STDTESTS[:]
+ nottests = NOTTESTS[:]
if exclude:
- nottests = args
+ for arg in args:
+ if arg in stdtests:
+ stdtests.remove(arg)
+ nottests[:0] = args
args = []
tests = tests or args or findtests(testdir, stdtests, nottests)
test_support.verbose = verbose # Tell tests to be moderately quiet