]> granicus.if.org Git - python/commitdiff
Should pass explicit arguments to findtests(). Should initialize 'nottests'.
authorGuido van Rossum <guido@python.org>
Mon, 24 Aug 1998 13:48:36 +0000 (13:48 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 24 Aug 1998 13:48:36 +0000 (13:48 +0000)
Lib/test/regrtest.py

index 21d35cfd748b932d0c992a1f5aa36e66281b9bcb..9a890a883fa724bb0900e8b40538a5775368144b 100755 (executable)
@@ -72,10 +72,12 @@ 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
     if exclude:
-        nottests[:0] = args
+        nottests = args
         args = []
-    tests = tests or args or findtests()    
+    tests = tests or args or findtests(testdir, stdtests, nottests)
     test_support.verbose = verbose      # Tell tests to be moderately quiet
     for test in tests:
         if not quiet: