changeset 38073:37ef6ee87488

test-http-branchmap: fix stdio mode on Windows
author Yuya Nishihara <yuya@tcha.org>
date Sun, 13 May 2018 11:09:53 +0900
parents 69779a222d5e
children 242eb5132203
files tests/test-http-branchmap.t
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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