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

Method setUp

Lib/test/test_asyncio/test_tasks.py:98–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 return self.__class__.Future(loop=loop)
97
98 def setUp(self):
99 super().setUp()
100 self.loop = self.new_test_loop()
101 self.loop.set_task_factory(self.new_task)
102 self.loop.create_future = lambda: self.new_future(self.loop)
103
104 def test_generic_alias(self):
105 task = self.__class__.Task[str]

Callers

nothing calls this directly

Calls 5

new_futureMethod · 0.95
superClass · 0.85
new_test_loopMethod · 0.80
setUpMethod · 0.45
set_task_factoryMethod · 0.45

Tested by

no test coverage detected