Skip to content

Bump pytest-asyncio from 0.26.0 to 1.0.0 #1217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ isort==6.0.1
mypy==1.16.1
types-protobuf==6.30.2.20250516
pytest>=6.2.4,<9
pytest-asyncio==0.26.0
pytest-asyncio==1.0.0
pytest-codspeed==3.2.0
pytest-cov>=4.1.0
pytest-timeout==2.4.0
13 changes: 9 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def auth_client():


@pytest.fixture
def connection_params(event_loop: asyncio.AbstractEventLoop) -> ConnectionParams:
def connection_params() -> ConnectionParams:
return get_mock_connection_params()


Expand Down Expand Up @@ -263,10 +263,15 @@ def long_repr_strings() -> Generator[None]:


@pytest.fixture(autouse=True)
def verify_no_lingering_tasks(
event_loop: asyncio.AbstractEventLoop,
) -> Generator[None]:
def verify_no_lingering_tasks() -> Generator[None]:
"""Verify that all tasks are cleaned up."""
try:
event_loop = asyncio.get_running_loop()
except RuntimeError:
# No event loop running, nothing to verify
yield
return

tasks_before = asyncio.all_tasks(event_loop)
yield

Expand Down