From e09209efb16764a8c1c37d85e436c2129fb16011 Mon Sep 17 00:00:00 2001 From: Christian Sagstetter <39457217+saggl@users.noreply.github.com> Date: Fri, 4 Dec 2026 12:38:31 +0000 Subject: [PATCH] gh-162859: Use shorter sleeps in the multiprocessing interrupt test --- Lib/test/_test_multiprocessing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 540189147cb4d7..05a26632435981 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -576,7 +576,9 @@ def _sleep_some(cls): @classmethod def _sleep_some_event(cls, event): event.set() - time.sleep(100) + # Return to Python regularly to handle a pending SIGINT. + for _ in support.sleeping_retry(100, error=False): + pass @classmethod def _sleep_no_int_handler(cls, event):