]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-130737: Fix multiprocessing test_notify() (GH-130797) (#130803)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 3 Mar 2025 19:02:20 +0000 (20:02 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Mar 2025 19:02:20 +0000 (19:02 +0000)
commit519dec97e726d190e1c5c9a5ecf12b27e3e5e1f4
tree4cba453a56942d2eb937ac57321d49181be0f090
parent3614649714a15c9b810e7697ed625662f0b164bd
[3.12] gh-130737: Fix multiprocessing test_notify() (GH-130797) (#130803)

gh-130737: Fix multiprocessing test_notify() (GH-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).
(cherry picked from commit 8a64a62002fa3cdc93cb4cfee315edb235cad8cb)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/_test_multiprocessing.py