mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Make regrtest recognize test packages as well as test modules.
This commit is contained in:
parent
c107fb1b59
commit
661720e7f7
1 changed files with 3 additions and 3 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue