]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-130737: Fix multiprocessing test_notify() (GH-130797) (#130802)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 3 Mar 2025 19:09:34 +0000 (20:09 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Mar 2025 19:09:34 +0000 (19:09 +0000)
commitd00e92bc04d90623b7cf665e23dd623a8d7e02df
tree57892b2db485d57076db0235b4352cffa1913fc3
parent4c6318e24ddd6a4aeb243c064055a38823a142bb
[3.13] gh-130737: Fix multiprocessing test_notify() (GH-130797) (#130802)

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