From 377e8f81f94543d53cbfb4c84d232c26a0501322 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Sun, 19 Apr 2026 23:48:18 +0200 Subject: [PATCH] test: skip fast parser on PyPy (gunicorn_h1c C extension is CPython-only) --- tests/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index c3824279..f1668590 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,6 +20,10 @@ if tests_dir not in sys.path: def http_parser(request): """Parametrize tests over http_parser implementations.""" if request.param == "fast": + # gunicorn_h1c ships as a CPython C extension; it is not reliable + # under PyPy (SIGSEGV observed in CI). Skip the fast parameter there. + if hasattr(sys, "pypy_version_info"): + pytest.skip("gunicorn_h1c not supported on PyPy") gunicorn_h1c = pytest.importorskip("gunicorn_h1c", reason="gunicorn_h1c required") # Require >= 0.6.2 for asgi_headers support if not hasattr(gunicorn_h1c.H1CProtocol, 'asgi_headers'):