(self)
| 2266 | gc.enable() |
| 2267 | |
| 2268 | async def test_no_explicit_close_no_debug(self): |
| 2269 | olddebug = self.loop.get_debug() |
| 2270 | self.loop.set_debug(False) |
| 2271 | try: |
| 2272 | with self.assertWarnsRegex( |
| 2273 | ResourceWarning, |
| 2274 | r'unclosed connection.*run in asyncio debug'): |
| 2275 | await self._run_no_explicit_close_test() |
| 2276 | finally: |
| 2277 | self.loop.set_debug(olddebug) |
| 2278 | |
| 2279 | async def test_no_explicit_close_with_debug(self): |
| 2280 | olddebug = self.loop.get_debug() |
nothing calls this directly
no test coverage detected