# HG changeset patch # User Matt Harbison # Date 1538267632 14400 # 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 -r d70e620ee8c9 -r 0f8ff3ff5d5c tests/run-tests.py --- a/tests/run-tests.py Sun Sep 30 05:52:42 2018 +0530 +++ b/tests/run-tests.py Sat Sep 29 20:33:52 2018 -0400 @@ -1875,6 +1875,7 @@ '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'):