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

Method setUp

Lib/test/test_asyncio/test_selector_events.py:407–412  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

405class SelectorTransportTests(test_utils.TestCase):
406
407 def setUp(self):
408 super().setUp()
409 self.loop = self.new_test_loop()
410 self.protocol = test_utils.make_test_protocol(asyncio.Protocol)
411 self.sock = mock.Mock(socket.socket)
412 self.sock.fileno.return_value = 7
413
414 def create_transport(self):
415 transport = _SelectorTransport(self.loop, self.sock, self.protocol,

Callers 4

setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45

Calls 2

superClass · 0.85
new_test_loopMethod · 0.80

Tested by

no test coverage detected