Commit 40648838 authored by Zachary Ware's avatar Zachary Ware

Issue #24751: Merge with 3.4

parents 08b1817f 920a335e
...@@ -810,7 +810,7 @@ def main(tests=None, **kwargs): ...@@ -810,7 +810,7 @@ def main(tests=None, **kwargs):
if ns.verbose2 and bad: if ns.verbose2 and bad:
print("Re-running failed tests in verbose mode") 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) print("Re-running test %r in verbose mode" % test)
sys.stdout.flush() sys.stdout.flush()
try: try:
...@@ -821,6 +821,13 @@ def main(tests=None, **kwargs): ...@@ -821,6 +821,13 @@ def main(tests=None, **kwargs):
# print a newline separate from the ^C # print a newline separate from the ^C
print() print()
break 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 ns.single:
if next_single_test: if next_single_test:
......
...@@ -45,6 +45,13 @@ Documentation ...@@ -45,6 +45,13 @@ Documentation
- Issue #24729: Correct IO tutorial to match implementation regarding - Issue #24729: Correct IO tutorial to match implementation regarding
encoding parameter to open function. 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? What's New in Python 3.5.0 beta 4?
================================== ==================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment