MCPcopy Index your code
hub / github.com/python/cpython / test_readall

Method test_readall

Lib/test/test_file_eintr.py:200–206  ·  view source on GitHub ↗

BufferedReader.read() must handle signals and not lose data.

(self)

Source from the content-addressed store, hash-verified

198 self.modname)
199
200 def test_readall(self):
201 """BufferedReader.read() must handle signals and not lose data."""
202 self._test_reading(
203 data_to_write=b'hello\nworld!',
204 read_and_verify_code=self._READING_CODE_TEMPLATE.format(
205 read_method_name='read',
206 expected=b'hello\nworld!\n'))
207
208class CTestBufferedIOSignalInterrupt(TestBufferedIOSignalInterrupt, unittest.TestCase):
209 modname = '_io'

Callers

nothing calls this directly

Calls 2

_test_readingMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected