(self)
| 2387 | self.loop.get_debug.return_value = True |
| 2388 | |
| 2389 | def test_handle(self): |
| 2390 | def callback(*args): |
| 2391 | return args |
| 2392 | |
| 2393 | args = () |
| 2394 | h = asyncio.Handle(callback, args, self.loop) |
| 2395 | self.assertIs(h._callback, callback) |
| 2396 | self.assertIs(h._args, args) |
| 2397 | self.assertFalse(h.cancelled()) |
| 2398 | |
| 2399 | h.cancel() |
| 2400 | self.assertTrue(h.cancelled()) |
| 2401 | |
| 2402 | def test_callback_with_exception(self): |
| 2403 | def callback(): |
nothing calls this directly
no test coverage detected