Kaydet (Commit) 661720e7 authored tarafından R David Murray's avatar R David Murray

Make regrtest recognize test packages as well as test modules.

üst c107fb1b
...@@ -732,9 +732,9 @@ def findtests(testdir=None, stdtests=STDTESTS, nottests=NOTTESTS): ...@@ -732,9 +732,9 @@ def findtests(testdir=None, stdtests=STDTESTS, nottests=NOTTESTS):
tests = [] tests = []
others = set(stdtests) | nottests others = set(stdtests) | nottests
for name in names: for name in names:
modname, ext = os.path.splitext(name) mod, ext = os.path.splitext(name)
if modname[:5] == "test_" and ext == ".py" and modname not in others: if mod[:5] == "test_" and ext in (".py", "") and mod not in others:
tests.append(modname) tests.append(mod)
return stdtests + sorted(tests) return stdtests + sorted(tests)
def replace_stdout(): def replace_stdout():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment