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