Skip SIGINT shutdown test on PyPy

SIGINT handling differs on PyPy and can cause flaky test failures.
The SIGTERM test covers the same graceful shutdown behavior reliably.
This commit is contained in:
Benoit Chesneau 2026-03-23 14:10:05 +01:00
parent f164d9d23e
commit 3568af1388

View File

@ -165,6 +165,10 @@ class TestSignalHandlingIntegration:
proc.kill()
pytest.fail("Gunicorn did not exit within timeout after SIGTERM")
@pytest.mark.skipif(
hasattr(sys, 'pypy_version_info'),
reason="SIGINT handling differs on PyPy, use SIGTERM test instead"
)
def test_graceful_shutdown_sigint(self, gunicorn_server):
"""Verify SIGINT causes graceful shutdown."""
proc, port = gunicorn_server