(self)
| 356 | super().setUp() |
| 357 | |
| 358 | def tearDown(self): |
| 359 | super().tearDown() |
| 360 | # AsyncTestCase must not affect the existing asyncio loop. |
| 361 | self.assertFalse(asyncio.get_event_loop().is_closed()) |
| 362 | asyncio.set_event_loop(self.orig_loop) |
| 363 | self.new_loop.close() |
| 364 | |
| 365 | def test_loop(self): |
| 366 | self.assertIs(self.io_loop.asyncio_loop, self.new_loop) # type: ignore |
nothing calls this directly
no test coverage detected