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..196e9d088 100644 --- a/tests/test_asyncio.py +++ b/tests/test_asyncio.py @@ -18,6 +18,10 @@ import zmq import zmq.asyncio as zaio +if version_info < (3, 11): + from exceptiongroup import BaseExceptionGroup, ExceptionGroup + + pytestmark = pytest.mark.anyio