]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-130737: Fix multiprocessing test_notify() (#130797)
authorVictor Stinner <vstinner@python.org>
Mon, 3 Mar 2025 18:45:26 +0000 (19:45 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Mar 2025 18:45:26 +0000 (18:45 +0000)
commit8a64a62002fa3cdc93cb4cfee315edb235cad8cb
treedbe6ac2b674304575607a8d91a24eab47136d586
parentd0eb01c9de9a455df36f885506314d8d00645c9f
gh-130737: Fix multiprocessing test_notify() (#130797)

Replace hardcoded delay (100 ms) with a loop awaiting until a
condition is true: replace assertReturnsIfImplemented() with
assertReachesEventually().

Use sleeping_retry() in assertReachesEventually() to tolerate slow
buildbots and raise an exception on timeout (30 seconds).
Lib/test/_test_multiprocessing.py