From 661720e7f70f054dbbf670f3f4724dab1ac51beb Mon Sep 17 00:00:00 2001 From: R David Murray Date: Mon, 21 Mar 2011 15:14:34 -0400 Subject: Make regrtest recognize test packages as well as test modules. --- Lib/test/regrtest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index ab3c502..1e72f80 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(): -- cgit v0.12