Mercurial > public > mercurial-scm > hg
diff tests/test-sshserver.py @ 35772:7764ff13318e
test-sshserver: stabilize for Windows
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 20 Jan 2018 14:21:40 -0500 |
parents | 047581ddb6ce |
children | 1bf5263fe5cc |
line wrap: on
line diff
--- 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__)