test-http-branchmap: fix stdio mode on Windows
authorYuya Nishihara <yuya@tcha.org>
Sun, 13 May 2018 11:09:53 +0900
changeset 38031 37ef6ee87488
parent 38030 69779a222d5e
child 38041 242eb5132203
test-http-branchmap: fix stdio mode on Windows
tests/test-http-branchmap.t
--- a/tests/test-http-branchmap.t	Sun May 13 11:08:35 2018 +0900
+++ b/tests/test-http-branchmap.t	Sun May 13 11:09:53 2018 +0900
@@ -59,7 +59,7 @@
 
   $ 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 @@
   >     def __getattr__(self, name):
   >         return getattr(self._file, name)
   > 
+  > dispatch.initstdio()
   > myui = ui.ui.load()
   > fout = StdoutWrapper(myui.fout)
   > myui.fout = myui.ferr