equal
deleted
inserted
replaced
45 def __init__(self, inbytes): |
45 def __init__(self, inbytes): |
46 self.fin = io.BytesIO(inbytes) |
46 self.fin = io.BytesIO(inbytes) |
47 self.fout = io.BytesIO() |
47 self.fout = io.BytesIO() |
48 self.ferr = io.BytesIO() |
48 self.ferr = io.BytesIO() |
49 |
49 |
|
50 def protectfinout(self): |
|
51 return self.fin, self.fout |
|
52 |
|
53 def restorefinout(self, fin, fout): |
|
54 pass |
|
55 |
50 if __name__ == '__main__': |
56 if __name__ == '__main__': |
51 # Don't call into msvcrt to set BytesIO to binary mode |
57 # Don't call into msvcrt to set BytesIO to binary mode |
52 procutil.setbinary = lambda fp: True |
58 procutil.setbinary = lambda fp: True |
53 silenttestrunner.main(__name__) |
59 silenttestrunner.main(__name__) |