diff --git a/pyproject.toml b/pyproject.toml index c89455d4..3bea40c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,8 +53,8 @@ test = [ "pytest-mock >= 3.6.1", "trustme", """\ - uvloop >= 0.17; platform_python_implementation == 'CPython' \ - and platform_system != 'Windows' and python_version < '3.13'\ + uvloop >= 0.21.0b1; platform_python_implementation == 'CPython' \ + and platform_system != 'Windows'\ """ ] doc = [ diff --git a/tests/test_subprocesses.py b/tests/test_subprocesses.py index e8020a7c..b1ff553d 100644 --- a/tests/test_subprocesses.py +++ b/tests/test_subprocesses.py @@ -285,9 +285,9 @@ async def test_py39_arguments( [sys.executable, "-c", "print('hello')"], **{argname: argvalue_factory()}, ) - except TypeError as exc: + except ValueError as exc: if ( - "unexpected keyword argument" in str(exc) + "unexpected kwargs" in str(exc) and anyio_backend_name == "asyncio" and anyio_backend_options["loop_factory"] and anyio_backend_options["loop_factory"].__module__ == "uvloop"