# HG changeset patch # User Matt Harbison # Date 2018-09-30 00:33:52 # Node ID 0f8ff3ff5d5cb276040fbb3605688b2c75ba6539 # Parent d70e620ee8c9cbc3af7f7ba8279c13a28cc689fd run-tests: flush output stream before prompting to accept changes With py3 on Windows, the prompt to accept changes in an --interactive run wasn't showing up until after the choice was read from stdin. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1875,6 +1875,7 @@ class TestResult(unittest._TextTestResul 'changes)') else: self.stream.write('Accept this change? [n] ') + self.stream.flush() answer = sys.stdin.readline().strip() if answer.lower() in ('y', 'yes'): if test.path.endswith(b'.t'):