(self)
| 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 | |
| 225 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected