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.py146 class MockRawIO(MockRawIOWithoutRead): class
156 class CMockRawIO(MockRawIO, io.RawIOBase):
159 class PyMockRawIO(MockRawIO, pyio.RawIOBase):
163 class MisbehavedRawIO(MockRawIO):
187 class SlowFlushRawIO(MockRawIO):
203 class CloseFailureIO(MockRawIO):
723 check(self.BufferedWriter(self.MockRawIO()))
724 check(self.BufferedRandom(self.MockRawIO()))
725 check(self.BufferedRWPair(self.MockRawIO(), self.MockRawIO()))
1052 raw = self.MockRawIO()
[all …]