(self)
| 111 | |
| 112 | class LeakTest(unittest.TestCase): |
| 113 | def setUp(self): |
| 114 | # Trigger a cleanup of the mapping so we start with a clean slate. |
| 115 | AsyncIOLoop(make_current=False).close() |
| 116 | # If we don't clean up after ourselves other tests may fail on |
| 117 | # py34. |
| 118 | self.orig_policy = asyncio.get_event_loop_policy() |
| 119 | asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy()) |
| 120 | |
| 121 | def tearDown(self): |
| 122 | asyncio.get_event_loop_policy().get_event_loop().close() |
nothing calls this directly
no test coverage detected