Make regrtest recognize test packages as well as test modules.
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 @@
     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():