From 4e9f18dfaa6e7db55231a35fcd93e18c343519a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Sun, 8 Sep 2024 14:22:11 +0300 Subject: [PATCH] Enabled uvloop to be used in the test suite on Python 3.13 The pre-release version now works properly on 3.13. --- pyproject.toml | 4 ++-- tests/test_subprocesses.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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"