Mercurial > hg-stable
changeset 35772:7764ff13318e
test-sshserver: stabilize for Windows
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 20 Jan 2018 14:21:40 -0500 |
parents | ebb75443969a |
children | eb878d863195 |
files | tests/test-sshserver.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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__)