Skip to content

fix(tests): Fix old pytest-asyncio breaking CI #3030

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 7 commits into from
Apr 30, 2024
Merged
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
29 changes: 15 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ deps =

# === Common ===
py3.8-common: hypothesis
{py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-common: pytest-asyncio<=0.21.1
{py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-common: pytest-asyncio
# See https://github.com/pytest-dev/pytest/issues/9621
# and https://github.com/pytest-dev/pytest-forked/issues/67
# for justification of the upper bound on pytest
Expand All @@ -268,8 +268,8 @@ deps =
aiohttp-v3.8: aiohttp~=3.8.0
aiohttp-latest: aiohttp
aiohttp: pytest-aiohttp
aiohttp-v3.8: pytest-asyncio<=0.21.1
aiohttp-latest: pytest-asyncio<=0.21.1
aiohttp-v3.8: pytest-asyncio
aiohttp-latest: pytest-asyncio

# Ariadne
ariadne-v0.20: ariadne~=0.20.0
Expand All @@ -283,17 +283,17 @@ deps =
arq-v0.23: pydantic<2
arq-latest: arq
arq: fakeredis>=2.2.0,<2.8
arq: pytest-asyncio<=0.21.1
arq: pytest-asyncio
arq: async-timeout

# Asgi
asgi: pytest-asyncio<=0.21.1
asgi: pytest-asyncio
asgi: async-asgi-testclient

# Asyncpg
asyncpg-v0.23: asyncpg~=0.23.0
asyncpg-latest: asyncpg
asyncpg: pytest-asyncio<=0.21.1
asyncpg: pytest-asyncio

# AWS Lambda
aws_lambda: boto3
Expand Down Expand Up @@ -345,10 +345,10 @@ deps =
django-v{1.11,2.0,2.2,3.0}: pytest-django<4.0
django-v{3.2,4.0,4.1,4.2,5.0}: pytest-django
django-v{4.0,4.1,4.2,5.0}: djangorestframework
django-v{4.0,4.1,4.2,5.0}: pytest-asyncio<=0.21.1
django-v{4.0,4.1,4.2,5.0}: pytest-asyncio
django-v{4.0,4.1,4.2,5.0}: Werkzeug
django-latest: djangorestframework
django-latest: pytest-asyncio<=0.21.1
django-latest: pytest-asyncio
django-latest: pytest-django
django-latest: Werkzeug
django-latest: channels[daphne]
Expand All @@ -375,7 +375,7 @@ deps =
fastapi: httpx
# (this is a dependency of httpx)
fastapi: anyio<4.0.0
fastapi: pytest-asyncio<=0.21.1
fastapi: pytest-asyncio
fastapi: python-multipart
fastapi: requests
fastapi-v{0.79}: fastapi~=0.79.0
Expand Down Expand Up @@ -407,7 +407,7 @@ deps =
grpc: protobuf
grpc: mypy-protobuf
grpc: types-protobuf
grpc: pytest-asyncio<=0.21.1
grpc: pytest-asyncio
grpc-v1.39: grpcio~=1.39.0
grpc-v1.49: grpcio~=1.49.1
grpc-v1.59: grpcio~=1.59.0
Expand Down Expand Up @@ -472,7 +472,7 @@ deps =

# Quart
quart: quart-auth
quart: pytest-asyncio<=0.21.1
quart: pytest-asyncio
quart-v0.16: blinker<1.6
quart-v0.16: jinja2<3.1.0
quart-v0.16: Werkzeug<2.1.0
Expand All @@ -485,7 +485,7 @@ deps =
# Redis
redis: fakeredis!=1.7.4
redis: pytest<8.0.0
{py3.7,py3.8,py3.9,py3.10,py3.11}-redis: pytest-asyncio<=0.21.1
{py3.7,py3.8,py3.9,py3.10,py3.11}-redis: pytest-asyncio
redis-v3: redis~=3.0
redis-v4: redis~=4.0
redis-v5: redis~=5.0
Expand Down Expand Up @@ -526,7 +526,7 @@ deps =
sanic-latest: sanic

# Starlette
starlette: pytest-asyncio<=0.21.1
starlette: pytest-asyncio
starlette: python-multipart
starlette: requests
starlette: httpx
Expand All @@ -541,7 +541,7 @@ deps =
starlette-latest: starlette

# Starlite
starlite: pytest-asyncio<=0.21.1
starlite: pytest-asyncio
starlite: python-multipart
starlite: requests
starlite: cryptography
Expand All @@ -563,6 +563,7 @@ deps =
strawberry-latest: strawberry-graphql[fastapi,flask]

# Tornado
tornado: pytest<8.2
tornado-v6.0: tornado~=6.0.0
tornado-v6: tornado~=6.0
tornado-latest: tornado
Expand Down