Skip to content

Commit e09209e

Browse files
committed
gh-162859: Use shorter sleeps in the multiprocessing interrupt test
1 parent 5b6dd1e commit e09209e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Lib/test/_test_multiprocessing.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,9 @@ def _sleep_some(cls):
576576
@classmethod
577577
def _sleep_some_event(cls, event):
578578
event.set()
579-
time.sleep(100)
579+
# Return to Python regularly to handle a pending SIGINT.
580+
for _ in support.sleeping_retry(100, error=False):
581+
pass
580582

581583
@classmethod
582584
def _sleep_no_int_handler(cls, event):

0 commit comments

Comments
 (0)