changeset: 97333:7d69b214e668 branch: 2.7 user: Zachary Ware date: Sat Aug 08 22:01:20 2015 -0500 files: Lib/test/regrtest.py description: Issue #24751: Fix running regrtest with '-w' flag in case of test failures. Also fixes reporting of tests that change environment when there are no test failures. diff -r 90e2747425ad -r 7d69b214e668 Lib/test/regrtest.py --- a/Lib/test/regrtest.py Tue Jul 14 13:25:03 2015 -0700 +++ b/Lib/test/regrtest.py Sat Aug 08 22:01:20 2015 -0500 @@ -624,14 +624,12 @@ for time, test in test_times[:10]: print "%s: %.1fs" % (test, time) if bad: - bad = set(bad) - set(environment_changed) - if bad: - print count(len(bad), "test"), "failed:" - printlist(bad) - if environment_changed: - print "{} altered the execution environment:".format( - count(len(environment_changed), "test")) - printlist(environment_changed) + print count(len(bad), "test"), "failed:" + printlist(bad) + if environment_changed: + print "{} altered the execution environment:".format( + count(len(environment_changed), "test")) + printlist(environment_changed) if skipped and not quiet: print count(len(skipped), "test"), "skipped:" printlist(skipped)