From: R David Murray Date: Mon, 21 Mar 2011 19:14:34 +0000 (-0400) Subject: Make regrtest recognize test packages as well as test modules. X-Git-Tag: v3.3.0a1~2808 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=661720e7f70f054dbbf670f3f4724dab1ac51beb;p=python Make regrtest recognize test packages as well as test modules. --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index ab3c502e0c..1e72f800b9 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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():