diff --git a/tests/test_tcp.py b/tests/test_tcp.py index c767708..4462575 100644 --- a/tests/test_tcp.py +++ b/tests/test_tcp.py @@ -714,7 +714,12 @@ class Test_UV_TCP(_TestTCP, tb.UVTestCase): with self.assertWarnsRegex(ResourceWarning, rx): self.loop.create_task(run()) self.loop.run_until_complete(srv.wait_closed()) + + srv = None gc.collect() + gc.collect() + gc.collect() + self.loop.run_until_complete(asyncio.sleep(0.1, loop=self.loop)) # Since one TCPTransport handle wasn't closed correctly,