diff --git a/pyproject.toml b/pyproject.toml index 7c1ea10d38..ec31ad7b97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -128,10 +128,7 @@ dev = [ "pre-commit<5.0.0", "proxy-py<3.0.0", "pydoc-markdown<5.0.0", - # pytest-asyncio 1.1+ runs tests through `backports.asyncio.runner` on Python 3.10, whose process-wide - # `contextvars.copy_context` patch can leak the fixture context into the test server thread and hang the test. - "pytest-asyncio<2.0.0; python_version >= '3.11'", - "pytest-asyncio>=1.0.0,<1.1.0; python_version < '3.11'", + "pytest-asyncio<2.0.0", "pytest-cov<8.0.0", "pytest-rerunfailures<17.0.0", "pytest-timeout<3.0.0", diff --git a/uv.lock b/uv.lock index e339bb7659..bd5e0af2cf 100644 --- a/uv.lock +++ b/uv.lock @@ -1117,8 +1117,7 @@ dev = [ { name = "proxy-py", specifier = "<3.0.0" }, { name = "pydoc-markdown", specifier = "<5.0.0" }, { name = "pytest", specifier = "<10.0.0" }, - { name = "pytest-asyncio", marker = "python_full_version < '3.11'", specifier = ">=1.0.0,<1.1.0" }, - { name = "pytest-asyncio", marker = "python_full_version >= '3.11'", specifier = "<2.0.0" }, + { name = "pytest-asyncio", specifier = "<2.0.0" }, { name = "pytest-cov", specifier = "<8.0.0" }, { name = "pytest-rerunfailures", specifier = "<17.0.0" }, { name = "pytest-timeout", specifier = "<3.0.0" },