Commit ed015d0
gh-116742: Fix subprocess test_check_output_timeout() (GH-130836)
Fix a race condition in test_check_output_timeout() of
test_subprocess. Don't write into stdout anymore, since there is no
reliable way to synchronize the parent and the child processes.
Change the timeout from 3 seconds to 0.1 seconds, and remove
@requires_resource('walltime') decorator.
(cherry picked from commit 67a942d)
Co-authored-by: Victor Stinner <[email protected]>
1 parent 8fe011a commit ed015d0
1 file changed
+5
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | 271 | | |
273 | 272 | | |
274 | 273 | | |
275 | 274 | | |
276 | 275 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 276 | + | |
| 277 | + | |
286 | 278 | | |
287 | 279 | | |
288 | 280 | | |
| |||
1708 | 1700 | | |
1709 | 1701 | | |
1710 | 1702 | | |
1711 | | - | |
1712 | 1703 | | |
1713 | 1704 | | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
1725 | 1708 | | |
1726 | 1709 | | |
1727 | 1710 | | |
| |||
0 commit comments