]> granicus.if.org Git - python/commitdiff
Make regrtest recognize test packages as well as test modules.
authorR David Murray <rdmurray@bitdance.com>
Mon, 21 Mar 2011 19:14:34 +0000 (15:14 -0400)
committerR David Murray <rdmurray@bitdance.com>
Mon, 21 Mar 2011 19:14:34 +0000 (15:14 -0400)
Lib/test/regrtest.py

index ab3c502e0cae50005e896f339dbbd9c438b1e255..1e72f800b9d995d4c2309638e5c075ad52114d2e 100755 (executable)
@@ -732,9 +732,9 @@ def findtests(testdir=None, stdtests=STDTESTS, nottests=NOTTESTS):
     tests = []
     others = set(stdtests) | nottests
     for name in names:
-        modname, ext = os.path.splitext(name)
-        if modname[:5] == "test_" and ext == ".py" and modname not in others:
-            tests.append(modname)
+        mod, ext = os.path.splitext(name)
+        if mod[:5] == "test_" and ext in (".py", "") and mod not in others:
+            tests.append(mod)
     return stdtests + sorted(tests)
 
 def replace_stdout():