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

Method setUp

Lib/test/test_asyncio/test_ssl.py:87–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

85 TIMEOUT = support.LONG_TIMEOUT
86
87 def setUp(self):
88 super().setUp()
89 self.loop = asyncio.new_event_loop()
90 self.set_event_loop(self.loop)
91 self.addCleanup(self.loop.close)
92
93 def tearDown(self):
94 # just in case if we have transport close callbacks

Callers

nothing calls this directly

Calls 4

superClass · 0.85
addCleanupMethod · 0.80
new_event_loopMethod · 0.45
set_event_loopMethod · 0.45

Tested by

no test coverage detected