Skip to content

Commit 99c3849

Browse files
authored
Pin pytest-asyncio to <=0.21 (#2563)
Seems like the recent release of `pytest-asyncio` `0.23` broke some of our tests. Pinning it to unblock PRs.
1 parent 837f294 commit 99c3849

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

tox.ini

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ deps =
241241
linters: werkzeug<2.3.0
242242

243243
# Common
244-
{py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-common: pytest-asyncio
244+
{py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-common: pytest-asyncio<=0.21.1
245245
# See https://github.com/pytest-dev/pytest/issues/9621
246246
# and https://github.com/pytest-dev/pytest-forked/issues/67
247247
# for justification of the upper bound on pytest
@@ -252,6 +252,8 @@ deps =
252252
aiohttp-v3.8: aiohttp~=3.8.0
253253
aiohttp-latest: aiohttp
254254
aiohttp: pytest-aiohttp
255+
aiohttp-v3.8: pytest-asyncio<=0.21.1
256+
aiohttp-latest: pytest-asyncio<=0.21.1
255257

256258
# Ariadne
257259
ariadne-v0.20: ariadne~=0.20.0
@@ -265,17 +267,17 @@ deps =
265267
arq-v0.23: pydantic<2
266268
arq-latest: arq
267269
arq: fakeredis>=2.2.0,<2.8
268-
arq: pytest-asyncio
270+
arq: pytest-asyncio<=0.21.1
269271
arq: async-timeout
270272

271273
# Asgi
272-
asgi: pytest-asyncio
274+
asgi: pytest-asyncio<=0.21.1
273275
asgi: async-asgi-testclient
274276

275277
# Asyncpg
276278
asyncpg-v0.23: asyncpg~=0.23.0
277279
asyncpg-latest: asyncpg
278-
asyncpg: pytest-asyncio
280+
asyncpg: pytest-asyncio<=0.21.1
279281

280282
# AWS Lambda
281283
aws_lambda: boto3
@@ -329,10 +331,10 @@ deps =
329331
django-v{1.8,1.11,2.0}: pytest-django<4.0
330332
django-v{2.2,3.0,3.2,4.0,4.1,4.2,5.0}: pytest-django
331333
django-v{4.0,4.1,4.2,5.0}: djangorestframework
332-
django-v{4.0,4.1,4.2,5.0}: pytest-asyncio
334+
django-v{4.0,4.1,4.2,5.0}: pytest-asyncio<=0.21.1
333335
django-v{4.0,4.1,4.2,5.0}: Werkzeug
334336
django-latest: djangorestframework
335-
django-latest: pytest-asyncio
337+
django-latest: pytest-asyncio<=0.21.1
336338
django-latest: pytest-django
337339
django-latest: Werkzeug
338340
django-latest: channels[daphne]
@@ -360,7 +362,7 @@ deps =
360362
# FastAPI
361363
fastapi: httpx
362364
fastapi: anyio<4.0.0 # thats a dep of httpx
363-
fastapi: pytest-asyncio
365+
fastapi: pytest-asyncio<=0.21.1
364366
fastapi: python-multipart
365367
fastapi: requests
366368
fastapi-v{0.79}: fastapi~=0.79.0
@@ -407,7 +409,7 @@ deps =
407409
grpc: protobuf
408410
grpc: mypy-protobuf
409411
grpc: types-protobuf
410-
grpc: pytest-asyncio
412+
grpc: pytest-asyncio<=0.21.1
411413
grpc-v1.21: grpcio-tools~=1.21.0
412414
grpc-v1.30: grpcio-tools~=1.30.0
413415
grpc-v1.40: grpcio-tools~=1.40.0
@@ -466,7 +468,7 @@ deps =
466468

467469
# Quart
468470
quart: quart-auth
469-
quart: pytest-asyncio
471+
quart: pytest-asyncio<=0.21.1
470472
quart-v0.16: blinker<1.6
471473
quart-v0.16: jinja2<3.1.0
472474
quart-v0.16: Werkzeug<2.1.0
@@ -478,7 +480,7 @@ deps =
478480

479481
# Redis
480482
redis: fakeredis!=1.7.4
481-
{py3.7,py3.8,py3.9,py3.10,py3.11}-redis: pytest-asyncio
483+
{py3.7,py3.8,py3.9,py3.10,py3.11}-redis: pytest-asyncio<=0.21.1
482484
redis-v3: redis~=3.0
483485
redis-v4: redis~=4.0
484486
redis-v5: redis~=5.0
@@ -520,7 +522,7 @@ deps =
520522
sanic-latest: sanic
521523

522524
# Starlette
523-
starlette: pytest-asyncio
525+
starlette: pytest-asyncio<=0.21.1
524526
starlette: python-multipart
525527
starlette: requests
526528
starlette: httpx
@@ -534,7 +536,7 @@ deps =
534536
starlette-latest: starlette
535537

536538
# Starlite
537-
starlite: pytest-asyncio
539+
starlite: pytest-asyncio<=0.21.1
538540
starlite: python-multipart
539541
starlite: requests
540542
starlite: cryptography

0 commit comments

Comments
 (0)