D5204: tests: add a critical flush() to run-tests.py to make output stable on py3

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Nov 2 21:44:41 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG176c26a21123: tests: add a critical flush() to run-tests.py to make output stable on py3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5204?vs=12359&id=12381

REVISION DETAIL
  https://phab.mercurial-scm.org/D5204

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS

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 @@
             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)



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list