equal
deleted
inserted
replaced
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__) |