# HG changeset patch # User Matt Harbison # Date 1516476100 18000 # Node ID 7764ff13318e409bfeaf75aabcb8a25aa7b9a039 # Parent ebb75443969ae8b4c750b7f082387bb126e2978f test-sshserver: stabilize for Windows diff -r ebb75443969a -r 7764ff13318e tests/test-sshserver.py --- a/tests/test-sshserver.py Sat Jan 20 14:02:05 2018 -0500 +++ b/tests/test-sshserver.py Sat Jan 20 14:21:40 2018 -0500 @@ -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__)