Make sure the output lists are sorted, even if run with -r.

This commit is contained in:
Jeremy Hylton 2001-10-17 13:45:28 +00:00
parent b8903fbf9b
commit 7a1ea0e880
1 changed files with 6 additions and 0 deletions

View File

@ -194,6 +194,12 @@ def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0,
for module in sys.modules.keys(): for module in sys.modules.keys():
if module not in save_modules and module.startswith("test."): if module not in save_modules and module.startswith("test."):
test_support.unload(module) 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 good and not quiet:
if not bad and not skipped and len(good) > 1: if not bad and not skipped and len(good) > 1:
print "All", print "All",