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.
--- 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'):