readall() must handle signals and not lose data.
(self)
| 169 | expected=[b'hello\n', b'world!\n'])) |
| 170 | |
| 171 | def test_readall(self): |
| 172 | """readall() must handle signals and not lose data.""" |
| 173 | self._test_reading( |
| 174 | data_to_write=b'hello\nworld!', |
| 175 | read_and_verify_code=self._READING_CODE_TEMPLATE.format( |
| 176 | read_method_name='readall', |
| 177 | expected=b'hello\nworld!\n')) |
| 178 | # read() is the same thing as readall(). |
| 179 | self._test_reading( |
| 180 | data_to_write=b'hello\nworld!', |
| 181 | read_and_verify_code=self._READING_CODE_TEMPLATE.format( |
| 182 | read_method_name='read', |
| 183 | expected=b'hello\nworld!\n')) |
| 184 | |
| 185 | |
| 186 | class CTestFileIOSignalInterrupt(TestFileIOSignalInterrupt, unittest.TestCase): |
nothing calls this directly
no test coverage detected