Home
last modified time | relevance | path

Searched refs:MockRawIO (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_io.py129 class MockRawIO(MockRawIOWithoutRead): class
139 class CMockRawIO(MockRawIO, io.RawIOBase):
142 class PyMockRawIO(MockRawIO, pyio.RawIOBase):
146 class MisbehavedRawIO(MockRawIO):
148 return MockRawIO.write(self, b) * 2
151 return MockRawIO.read(self, n) * 2
160 MockRawIO.readinto(self, buf)
170 class CloseFailureIO(MockRawIO):
734 raw = self.MockRawIO()
742 rawio = self.MockRawIO()
[all …]
/external/python/cpython3/Lib/test/
Dtest_io.py139 class MockRawIO(MockRawIOWithoutRead): class
149 class CMockRawIO(MockRawIO, io.RawIOBase):
152 class PyMockRawIO(MockRawIO, pyio.RawIOBase):
156 class MisbehavedRawIO(MockRawIO):
180 class SlowFlushRawIO(MockRawIO):
196 class CloseFailureIO(MockRawIO):
712 check(self.BufferedWriter(self.MockRawIO()))
713 check(self.BufferedRandom(self.MockRawIO()))
714 check(self.BufferedRWPair(self.MockRawIO(), self.MockRawIO()))
1033 raw = self.MockRawIO()
[all …]