diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-08-05 02:59:09 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-08-05 02:59:09 (GMT) |
commit | 6e435e2d113593fc36389592d7165941b9ea399b (patch) | |
tree | b84b9429264f39870137261c4c1fbe49afc7c53d | |
parent | ec3e16a0f461cee26253da5da7eba131e9e79252 (diff) | |
parent | 40648838b271b4314d8e26d53a604018f187bec7 (diff) | |
download | cpython-6e435e2d113593fc36389592d7165941b9ea399b.zip cpython-6e435e2d113593fc36389592d7165941b9ea399b.tar.gz cpython-6e435e2d113593fc36389592d7165941b9ea399b.tar.bz2 |
Closes #24751: Merge with 3.5
-rwxr-xr-x | Lib/test/regrtest.py | 9 | ||||
-rw-r--r-- | Misc/NEWS | 7 |
2 files changed, 15 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 5b1fcc6..5650be0 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -810,7 +810,7 @@ def main(tests=None, **kwargs): if ns.verbose2 and bad: print("Re-running failed tests in verbose mode") - for test in bad: + for test in bad[:]: print("Re-running test %r in verbose mode" % test) sys.stdout.flush() try: @@ -821,6 +821,13 @@ def main(tests=None, **kwargs): # print a newline separate from the ^C print() break + else: + if ok[0] in {PASSED, ENV_CHANGED, SKIPPED, RESOURCE_DENIED}: + bad.remove(test) + else: + if bad: + print(count(len(bad), 'test'), "failed again:") + printlist(bad) if ns.single: if next_single_test: @@ -71,6 +71,13 @@ Documentation - Issue #24729: Correct IO tutorial to match implementation regarding encoding parameter to open function. +Tests +----- + +- Issue #24751: When running regrtest with the ``-w`` command line option, + a test run is no longer marked as a failure if all tests succeed when + re-run. + What's New in Python 3.5.0 beta 4? ================================== |