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

Method test_readline_empty_eof

Lib/test/test_asyncio/test_streams.py:349–354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

347 self.assertEqual(b'some data', line)
348
349 def test_readline_empty_eof(self):
350 stream = asyncio.StreamReader(loop=self.loop)
351 stream.feed_eof()
352
353 line = self.loop.run_until_complete(stream.readline())
354 self.assertEqual(b'', line)
355
356 def test_readline_read_byte_count(self):
357 stream = asyncio.StreamReader(loop=self.loop)

Callers

nothing calls this directly

Calls 4

feed_eofMethod · 0.95
readlineMethod · 0.95
run_until_completeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected