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

Method setUp

Lib/test/test_asyncio/test_streams.py:28–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 DATA = b'line1\nline2\nline3\n'
27
28 def setUp(self):
29 super().setUp()
30 self.loop = asyncio.new_event_loop()
31 self.set_event_loop(self.loop)
32
33 def tearDown(self):
34 # just in case if we have transport close callbacks

Callers

nothing calls this directly

Calls 3

superClass · 0.85
new_event_loopMethod · 0.45
set_event_loopMethod · 0.45

Tested by

no test coverage detected