Skip to content

Commit

Permalink
Removed the unwarranted gc_collect fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Jan 3, 2025
1 parent acdac7a commit 8b7a535
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_sockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b7a535

Please sign in to comment.