mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-04 03:31:29 +08:00
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:
parent
f164d9d23e
commit
3568af1388
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user