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

Method setUp

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

Source from the content-addressed store, hash-verified

3586 """Test case for asyncio.run_coroutine_threadsafe."""
3587
3588 def setUp(self):
3589 super().setUp()
3590 self.loop = asyncio.new_event_loop()
3591 self.set_event_loop(self.loop) # Will cleanup properly
3592
3593 async def add(self, a, b, fail=False, cancel=False):
3594 """Wait 0.05 second and return a + b."""

Callers

nothing calls this directly

Calls 4

superClass · 0.85
setUpMethod · 0.45
new_event_loopMethod · 0.45
set_event_loopMethod · 0.45

Tested by

no test coverage detected