Skip to content

Commit deec35d

Browse files
committed
Fixes
1 parent 15a0fa8 commit deec35d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
Any,
1515
AsyncIterator,
1616
Callable,
17-
Generator,
1817
Iterable,
1918
Iterator,
2019
Optional,
@@ -348,7 +347,7 @@ def ws_key(key: bytes) -> str:
348347

349348

350349
@pytest.fixture
351-
def enable_cleanup_closed() -> Generator[None, None, None]:
350+
def enable_cleanup_closed() -> Iterator[None]:
352351
"""Fixture to override the NEEDS_CLEANUP_CLOSED flag.
353352
354353
On Python 3.12.7+ and 3.13.1+ enable_cleanup_closed is not needed,
@@ -359,7 +358,7 @@ def enable_cleanup_closed() -> Generator[None, None, None]:
359358

360359

361360
@pytest.fixture
362-
def unused_port_socket() -> Generator[socket.socket, None, None]:
361+
def unused_port_socket() -> Iterator[socket.socket]:
363362
"""Return a socket that is unused on the current host.
364363
365364
Unlike aiohttp_used_port, the socket is yielded so there is no
@@ -376,7 +375,7 @@ def unused_port_socket() -> Generator[socket.socket, None, None]:
376375
@pytest.fixture(params=["zlib", "zlib_ng.zlib_ng", "isal.isal_zlib"])
377376
def parametrize_zlib_backend(
378377
request: pytest.FixtureRequest,
379-
) -> Generator[None, None, None]:
378+
) -> Iterator[None]:
380379
original_backend: ZLibBackendProtocol = ZLibBackend._zlib_backend
381380
backend = pytest.importorskip(request.param)
382381
set_zlib_backend(backend)

0 commit comments

Comments
 (0)