From 8b7a5352aec2c0cdd2f9a991da601f2f5b22cf8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Fri, 3 Jan 2025 15:07:00 +0200 Subject: [PATCH] Removed the unwarranted gc_collect fixture --- tests/test_sockets.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/test_sockets.py b/tests/test_sockets.py index f07bae50..d6063875 100644 --- a/tests/test_sockets.py +++ b/tests/test_sockets.py @@ -491,13 +491,9 @@ def serve() -> None: thread.join() assert thread_exception is None - @pytest.fixture - def gc_collect(self) -> None: - gc.collect() - @pytest.mark.parametrize("anyio_backend", asyncio_params) async def test_unretrieved_future_exception_server_crash( - self, family: AnyIPAddressFamily, caplog: LogCaptureFixture, gc_collect: None + self, family: AnyIPAddressFamily, caplog: LogCaptureFixture ) -> None: """ Test that there won't be any leftover Futures that don't get their exceptions