MCPcopy
hub / github.com/aio-libs/aiohttp / test_read_nowait_exception

Method test_read_nowait_exception

tests/test_streams.py:512–517  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

510 self.assertEqual(b'', data)
511
512 def test_read_nowait_exception(self):
513 stream = self._make_one()
514 stream.feed_data(b'line\n')
515 stream.set_exception(ValueError())
516
517 self.assertRaises(ValueError, stream.read_nowait)
518
519 def test_read_nowait_waiter(self):
520 stream = self._make_one()

Callers

nothing calls this directly

Calls 3

_make_oneMethod · 0.95
feed_dataMethod · 0.45
set_exceptionMethod · 0.45

Tested by

no test coverage detected