Mercurial > public > mercurial-scm > hg-stable
diff tests/run-tests.py @ 39914:0f8ff3ff5d5c
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.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 29 Sep 2018 20:33:52 -0400 |
parents | 38d51371792b |
children | 1039404c5e1d |
line wrap: on
line diff
--- 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'):