From: Jeremy Hylton Date: Wed, 17 Oct 2001 13:45:28 +0000 (+0000) Subject: Make sure the output lists are sorted, even if run with -r. X-Git-Tag: v2.2.1c1~1217 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a1ea0e88034cdc03d546f0947fc8ecb30f4435f;p=thirdparty%2FPython%2Fcpython.git Make sure the output lists are sorted, even if run with -r. --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 6e5f91b7b582..1f9efa724a29 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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",