summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-04-11 20:58:54 (GMT)
committerFred Drake <fdrake@acm.org>2002-04-11 20:58:54 (GMT)
commit04a8da5cdb185322ca519db1e731ba10d7646970 (patch)
tree476bec42a426ec6b7f51fcd0bcb5704690e84ef6
parentf9ddec41ce44c50d25258f1c0bdc68e08329b8a6 (diff)
downloadcpython-04a8da5cdb185322ca519db1e731ba10d7646970.zip
cpython-04a8da5cdb185322ca519db1e731ba10d7646970.tar.gz
cpython-04a8da5cdb185322ca519db1e731ba10d7646970.tar.bz2
Clean up the "all" support for -u.
-rwxr-xr-xLib/test/regrtest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index b5ae97b..843deef 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -132,7 +132,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0,
break
if r not in RESOURCE_NAMES:
usage(1, 'Invalid -u/--use option: ' + a)
- use_resources.extend(u)
+ if r not in use_resources:
+ use_resources.extend(r)
if generate and verbose:
usage(2, "-g and -v don't go together!")