diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96e57ee..8c8f36a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,10 +35,6 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.10"] - exclude: - # The job hangs for some reason during tests execution. :( - - os: macos-latest - python-version: pypy-3.10 runs-on: ${{ matrix.os }} steps: diff --git a/tests/ext/test_asgiscopes.py b/tests/ext/test_asgiscopes.py index 16bd5f8..fb5084d 100644 --- a/tests/ext/test_asgiscopes.py +++ b/tests/ext/test_asgiscopes.py @@ -1,6 +1,7 @@ """Test ASGI scopes.""" import asyncio +import sys import async_asgi_testclient import pytest @@ -98,6 +99,9 @@ async def endpoint_ws(websocket, func=func): def client_factory(connection_type): """A factory that creates synchronous test client instances.""" + if connection_type == "websocket" and sys.implementation.name == "pypy": + pytest.skip("When running on PyPy, the websocket tests sometimes hang.") + def factory(app): return ClientFacade(app, connection_type)