mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Make sure the output lists are sorted, even if run with -r.
This commit is contained in:
parent
b8903fbf9b
commit
7a1ea0e880
1 changed files with 6 additions and 0 deletions
|
|
@ -194,6 +194,12 @@ def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0,
|
|||
for module in sys.modules.keys():
|
||||
if module not in save_modules and module.startswith("test."):
|
||||
test_support.unload(module)
|
||||
|
||||
# The lists won't be sorted if running with -r
|
||||
good.sort()
|
||||
bad.sort()
|
||||
skipped.sort()
|
||||
|
||||
if good and not quiet:
|
||||
if not bad and not skipped and len(good) > 1:
|
||||
print "All",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue