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

Method connection_made

Lib/test/test_asyncio/test_events.py:232–236  ·  view source on GitHub ↗
(self, transport)

Source from the content-addressed store, hash-verified

230 raise AssertionError(f'state: {self.state!r}, expected: {expected!r}')
231
232 def connection_made(self, transport):
233 self.transport = transport
234 self._assert_state('INITIAL')
235 self.state = 'CONNECTED'
236 self.connected.set_result(None)
237
238 def connection_lost(self, exc):
239 self._assert_state('CONNECTED')

Callers

nothing calls this directly

Calls 2

_assert_stateMethod · 0.95
set_resultMethod · 0.45

Tested by

no test coverage detected