Mercurial > public > mercurial-scm > hg
comparison tests/test-sshserver.py @ 37120:a8a902d7176e
procutil: bulk-replace function calls to point to new module
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 24 Mar 2018 15:10:51 +0900 |
parents | 3b3a987bbbaa |
children | b4d85bc122bd |
comparison
equal
deleted
inserted
replaced
37119:d4a2e0d5d042 | 37120:a8a902d7176e |
---|---|
4 import unittest | 4 import unittest |
5 | 5 |
6 import silenttestrunner | 6 import silenttestrunner |
7 | 7 |
8 from mercurial import ( | 8 from mercurial import ( |
9 util, | |
10 wireproto, | 9 wireproto, |
11 wireprotoserver, | 10 wireprotoserver, |
11 ) | |
12 | |
13 from mercurial.utils import ( | |
14 procutil, | |
12 ) | 15 ) |
13 | 16 |
14 class SSHServerGetArgsTests(unittest.TestCase): | 17 class SSHServerGetArgsTests(unittest.TestCase): |
15 def testparseknown(self): | 18 def testparseknown(self): |
16 tests = [ | 19 tests = [ |
44 self.fout = io.BytesIO() | 47 self.fout = io.BytesIO() |
45 self.ferr = io.BytesIO() | 48 self.ferr = io.BytesIO() |
46 | 49 |
47 if __name__ == '__main__': | 50 if __name__ == '__main__': |
48 # Don't call into msvcrt to set BytesIO to binary mode | 51 # Don't call into msvcrt to set BytesIO to binary mode |
49 util.setbinary = lambda fp: True | 52 procutil.setbinary = lambda fp: True |
50 silenttestrunner.main(__name__) | 53 silenttestrunner.main(__name__) |