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

Method test_readline

Lib/test/test_file_eintr.py:223–229  ·  view source on GitHub ↗

readline() must handle signals and not lose data.

(self)

Source from the content-addressed store, hash-verified

221 self.modname)
222
223 def test_readline(self):
224 """readline() must handle signals and not lose data."""
225 self._test_reading(
226 data_to_write=b'hello, world!',
227 read_and_verify_code=self._READING_CODE_TEMPLATE.format(
228 read_method_name='readline',
229 expected='hello, world!\n'))
230
231 def test_readlines(self):
232 """readlines() 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