# HG changeset patch # User Augie Fackler # Date 2018-11-01 19:47:26 # Node ID 176c26a211232e89f7c6b9f23fee951c813e6c54 # Parent 86dfae98a3a2914de8871bc1be5652395bb2bac1 tests: add a critical flush() to run-tests.py to make output stable on py3 Differential Revision: https://phab.mercurial-scm.org/D5204 diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -482,6 +482,7 @@ def parseargs(args, parser): parser.error('--with-hg must specify an executable hg script') if os.path.basename(options.with_hg) not in [b'hg', b'hg.exe']: sys.stderr.write('warning: --with-hg should specify an hg script\n') + sys.stderr.flush() if options.local: testdir = os.path.dirname(_bytespath(canonpath(sys.argv[0]))) reporootdir = os.path.dirname(testdir)