From ff2bcc5fa90a06874475c4342036d89710941a4c Mon Sep 17 00:00:00 2001 From: Ben Hearsum Date: Mon, 26 May 2025 11:14:42 -0400 Subject: [PATCH] fix: test failures around missing 'event_loop' fixture Caused by the recent pytest-asyncio 1.0 release, which included https://github.com/pytest-dev/pytest-asyncio/pull/1106. We need to pin to <1.0 until we upgrade all scriptworkers past python 3.8, I guess. --- setup.py | 3 ++- tox.ini | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index bd96c9b8..8e4ee568 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,8 @@ "flake8", "flake8_docstrings", "mock", - "pytest", + # doesn't support python 3.8 + "pytest<1.0", "pytest-asyncio", "pytest-cov", "pytest-mock", diff --git a/tox.ini b/tox.ini index f81397d1..9715e28b 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ deps = flake8_docstrings mock pytest - pytest-asyncio + pytest-asyncio<1.0 pytest-mock pytest-random-order virtualenv