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

Method test_call_later

Lib/test/test_asyncio/test_events.py:310–319  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

308 self.loop.run_until_complete, task)
309
310 def test_call_later(self):
311 results = []
312
313 def callback(arg):
314 results.append(arg)
315 self.loop.stop()
316
317 self.loop.call_later(0.1, callback, 'hello world')
318 self.loop.run_forever()
319 self.assertEqual(results, ['hello world'])
320
321 def test_call_soon(self):
322 results = []

Callers

nothing calls this directly

Calls 3

call_laterMethod · 0.45
run_foreverMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected