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

Method test_readall

Lib/test/test_file_eintr.py:239–245  ·  view source on GitHub ↗

read() must handle signals and not lose data.

(self)

Source from the content-addressed store, hash-verified

237 expected=['hello\n', 'world!\n']))
238
239 def test_readall(self):
240 """read() must handle signals and not lose data."""
241 self._test_reading(
242 data_to_write=b'hello\nworld!',
243 read_and_verify_code=self._READING_CODE_TEMPLATE.format(
244 read_method_name='read',
245 expected="hello\nworld!\n"))
246
247class CTestTextIOSignalInterrupt(TestTextIOSignalInterrupt, unittest.TestCase):
248 modname = '_io'

Callers

nothing calls this directly

Calls 2

_test_readingMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected