summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-03-21 19:14:34 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-03-21 19:14:34 (GMT)
commit661720e7f70f054dbbf670f3f4724dab1ac51beb (patch)
tree1c7ddc14a69c4442779ba268030bde4d605020a0 /Lib
parentc107fb1b59501a4d9de9618e13e8bc8601f76764 (diff)
downloadcpython-661720e7f70f054dbbf670f3f4724dab1ac51beb.zip
cpython-661720e7f70f054dbbf670f3f4724dab1ac51beb.tar.gz
cpython-661720e7f70f054dbbf670f3f4724dab1ac51beb.tar.bz2
Make regrtest recognize test packages as well as test modules.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py6
1 files 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():