[PATCH 2 of 2] test-http-branchmap: fix stdio mode on Windows

Yuya Nishihara yuya at tcha.org
Sat May 12 22:27:15 EDT 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1526177393 -32400
#      Sun May 13 11:09:53 2018 +0900
# Node ID 74982ab8ca762a3cfe3648740dae27555232476b
# Parent  af07d426066dd8326c50a5686d7ecd25072d67b3
test-http-branchmap: fix stdio mode on Windows

diff --git a/tests/test-http-branchmap.t b/tests/test-http-branchmap.t
--- a/tests/test-http-branchmap.t
+++ b/tests/test-http-branchmap.t
@@ -59,7 +59,7 @@ verify 7e7d56fe4833 (encoding fallback i
 
   $ cat <<EOF > oldhg
   > import threading
-  > from mercurial import hg, ui, wireprotoserver
+  > from mercurial import dispatch, hg, ui, wireprotoserver
   > 
   > class StdoutWrapper(object):
   >     def __init__(self, stdout):
@@ -77,6 +77,7 @@ verify 7e7d56fe4833 (encoding fallback i
   >     def __getattr__(self, name):
   >         return getattr(self._file, name)
   > 
+  > dispatch.initstdio()
   > myui = ui.ui.load()
   > fout = StdoutWrapper(myui.fout)
   > myui.fout = myui.ferr


More information about the Mercurial-devel mailing list