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

Method test_readlines

Lib/test/test_file_eintr.py:231–237  ·  view source on GitHub ↗

readlines() must handle signals and not lose data.

(self)

Source from the content-addressed store, hash-verified

229 expected='hello, world!\n'))
230
231 def test_readlines(self):
232 """readlines() must handle signals and not lose data."""
233 self._test_reading(
234 data_to_write=b'hello\r\nworld!',
235 read_and_verify_code=self._READING_CODE_TEMPLATE.format(
236 read_method_name='readlines',
237 expected=['hello\n', 'world!\n']))
238
239 def test_readall(self):
240 """read() must handle signals and not lose data."""

Callers

nothing calls this directly

Calls 2

_test_readingMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected