From 04a8da5cdb185322ca519db1e731ba10d7646970 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 11 Apr 2002 20:58:54 +0000 Subject: Clean up the "all" support for -u. --- Lib/test/regrtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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!") -- cgit v0.12