From 3568af1388fbe52686974a9acc593ab423abcce3 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Mon, 23 Mar 2026 14:10:05 +0100 Subject: [PATCH] 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. --- tests/test_signal_integration.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_signal_integration.py b/tests/test_signal_integration.py index f7975f78..2895c089 100644 --- a/tests/test_signal_integration.py +++ b/tests/test_signal_integration.py @@ -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