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

Method test_readlines

Lib/test/test_file_eintr.py:163–169  ·  view source on GitHub ↗

readlines() must handle signals and not lose data.

(self)

Source from the content-addressed store, hash-verified

161 expected=b'hello, world!\n'))
162
163 def test_readlines(self):
164 """readlines() must handle signals and not lose data."""
165 self._test_reading(
166 data_to_write=b'hello\nworld!',
167 read_and_verify_code=self._READING_CODE_TEMPLATE.format(
168 read_method_name='readlines',
169 expected=[b'hello\n', b'world!\n']))
170
171 def test_readall(self):
172 """readall() must handle signals and not lose data."""

Callers

nothing calls this directly

Calls 2

_test_readingMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected