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

Method handle_echo

Lib/test/test_asyncio/test_streams.py:1229–1230  ·  view source on GitHub ↗
(reader, writer)

Source from the content-addressed store, hash-verified

1227
1228 def test_unhandled_exception(self):
1229 async def handle_echo(reader, writer):
1230 raise Exception('test')
1231 messages = self._basetest_unhandled_exceptions(handle_echo)
1232 self.assertEqual(messages[0]['message'],
1233 'Unhandled exception in client_connected_cb')

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected