Commit aa2c4e4
[3.13] pythongh-116742: Fix subprocess test_check_output_timeout() (pythonGH-130836) (python#130873)
pythongh-116742: Fix subprocess test_check_output_timeout() (pythonGH-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 6321e1a commit aa2c4e4
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 | | |
| |||
1693 | 1685 | | |
1694 | 1686 | | |
1695 | 1687 | | |
1696 | | - | |
1697 | 1688 | | |
1698 | 1689 | | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
1708 | | - | |
1709 | | - | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
1710 | 1693 | | |
1711 | 1694 | | |
1712 | 1695 | | |
| |||
0 commit comments