[PATCH 3 of 3] test-sshserver: stabilize for Windows
Matt Harbison
mharbison72 at gmail.com
Sat Jan 20 15:14:25 EST 2018
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1516476100 18000
# Sat Jan 20 14:21:40 2018 -0500
# Node ID 1dd5724664ab53e0cf2a69809bb3f4158d4e30d7
# Parent ebb75443969ae8b4c750b7f082387bb126e2978f
test-sshserver: stabilize for Windows
diff --git a/tests/test-sshserver.py b/tests/test-sshserver.py
--- a/tests/test-sshserver.py
+++ b/tests/test-sshserver.py
@@ -7,6 +7,7 @@
from mercurial import (
sshserver,
+ util,
wireproto,
)
@@ -41,4 +42,6 @@
self.ferr = io.BytesIO()
if __name__ == '__main__':
+ # Don't call into msvcrt to set BytesIO to binary mode
+ util.setbinary = lambda fp: True
silenttestrunner.main(__name__)
More information about the Mercurial-devel
mailing list