Skip to content

Commit 3568af1

Browse files
committed
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.
1 parent f164d9d commit 3568af1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_signal_integration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ def test_graceful_shutdown_sigterm(self, gunicorn_server):
165165
proc.kill()
166166
pytest.fail("Gunicorn did not exit within timeout after SIGTERM")
167167

168+
@pytest.mark.skipif(
169+
hasattr(sys, 'pypy_version_info'),
170+
reason="SIGINT handling differs on PyPy, use SIGTERM test instead"
171+
)
168172
def test_graceful_shutdown_sigint(self, gunicorn_server):
169173
"""Verify SIGINT causes graceful shutdown."""
170174
proc, port = gunicorn_server

0 commit comments

Comments
 (0)