Skip to content

Commit

Permalink
Enabled uvloop to be used in the test suite on Python 3.13
Browse files Browse the repository at this point in the history
The pre-release version now works properly on 3.13.
  • Loading branch information
agronholm committed Sep 8, 2024
1 parent 7de6441 commit 4e9f18d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
4 changes: 2 additions & 2 deletions tests/test_subprocesses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4e9f18d

Please sign in to comment.