r79450 - python/trunk/Lib/test/regrtest.py
![](https://secure.gravatar.com/avatar/8ac615df352a970211b0e3d94a307c6d.jpg?s=120&d=mm&r=g)
Author: florent.xicluna Date: Fri Mar 26 20:32:44 2010 New Revision: 79450 Log: Ensure that the failed or unexpected tests are sorted before printing. Modified: python/trunk/Lib/test/regrtest.py Modified: python/trunk/Lib/test/regrtest.py ============================================================================== --- python/trunk/Lib/test/regrtest.py (original) +++ python/trunk/Lib/test/regrtest.py Fri Mar 26 20:32:44 2010 @@ -580,12 +580,6 @@ 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() - environment_changed.sort() - if good and not quiet: if not bad and not skipped and len(good) > 1: print "All", @@ -1090,7 +1084,8 @@ from textwrap import fill blanks = ' ' * indent - print fill(' '.join(str(elt) for elt in x), width, + # Print the sorted list: 'x' may be a '--random' list or a set() + print fill(' '.join(str(elt) for elt in sorted(x)), width, initial_indent=blanks, subsequent_indent=blanks) # Map sys.platform to a string containing the basenames of tests
participants (1)
-
florent.xicluna