Commit 519dec9
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 8a64a62)
Co-authored-by: Victor Stinner <[email protected]>
1 parent 3614649 commit 519dec9
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1577 | 1577 | | |
1578 | 1578 | | |
1579 | 1579 | | |
1580 | | - | |
| 1580 | + | |
1581 | 1581 | | |
1582 | 1582 | | |
1583 | 1583 | | |
1584 | 1584 | | |
1585 | 1585 | | |
1586 | | - | |
1587 | | - | |
| 1586 | + | |
1588 | 1587 | | |
1589 | 1588 | | |
1590 | 1589 | | |
| |||
1618 | 1617 | | |
1619 | 1618 | | |
1620 | 1619 | | |
1621 | | - | |
1622 | | - | |
| 1620 | + | |
1623 | 1621 | | |
1624 | 1622 | | |
1625 | 1623 | | |
1626 | 1624 | | |
1627 | 1625 | | |
1628 | 1626 | | |
1629 | 1627 | | |
1630 | | - | |
1631 | | - | |
| 1628 | + | |
1632 | 1629 | | |
1633 | 1630 | | |
1634 | 1631 | | |
1635 | 1632 | | |
1636 | 1633 | | |
1637 | 1634 | | |
1638 | 1635 | | |
1639 | | - | |
1640 | | - | |
| 1636 | + | |
1641 | 1637 | | |
1642 | 1638 | | |
1643 | 1639 | | |
| |||
0 commit comments