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

Method test_run_non_blocking

Lib/test/test_sched.py:215–222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

213 ])
214
215 def test_run_non_blocking(self):
216 l = []
217 fun = lambda x: l.append(x)
218 scheduler = sched.scheduler(time.time, time.sleep)
219 for x in [10, 9, 8, 7, 6]:
220 scheduler.enter(x, 1, fun, (x,))
221 scheduler.run(blocking=False)
222 self.assertEqual(l, [])
223
224
225if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

assertEqualMethod · 0.95
appendMethod · 0.45
enterMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected