From 711d2362ebfd0e55b125b3b0dd3a9c6994ef0c6c Mon Sep 17 00:00:00 2001 From: David Brochart Date: Wed, 30 Oct 2024 19:33:31 +0100 Subject: [PATCH] - --- pyproject.toml | 2 +- tests/test_asyncio.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1e97abf15..93a4dff32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -147,7 +147,7 @@ search = '__version__: str = "{current_version}"' [tool.cibuildwheel] build-verbosity = "1" free-threaded-support = true -test-requires = ["pytest>=6", "importlib_metadata"] +test-requires = ["pytest>=6", "importlib_metadata", "exceptiongroup;python_version<'3.11'"] test-command = "pytest -vsx {package}/tools/test_wheel.py" [tool.cibuildwheel.linux] diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py index e2ec0c82c..33de64fe4 100644 --- a/tests/test_asyncio.py +++ b/tests/test_asyncio.py @@ -18,6 +18,10 @@ import zmq import zmq.asyncio as zaio +if sys.version_info < (3, 11): + from exceptiongroup import BaseExceptionGroup, ExceptionGroup + + pytestmark = pytest.mark.anyio