Commit 03c2da4
committed
gh-47798: Fix flaky pipeline tests where downstream exits without reading
In tests where the second command exits immediately (sys.exit(N))
without reading stdin, the first command's stdout flush during
interpreter shutdown can hit a readerless pipe and yield exit code
120, breaking assertions on returncodes[0] == 0. Seen on Windows
free-threading and FreeBSD refleak buildbots. The first command's
output is unused in these tests; switch it to "pass".1 parent ae5a6b2 commit 03c2da4
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2150 | 2150 | | |
2151 | 2151 | | |
2152 | 2152 | | |
2153 | | - | |
| 2153 | + | |
2154 | 2154 | | |
2155 | 2155 | | |
2156 | 2156 | | |
| |||
2261 | 2261 | | |
2262 | 2262 | | |
2263 | 2263 | | |
2264 | | - | |
| 2264 | + | |
2265 | 2265 | | |
2266 | 2266 | | |
2267 | 2267 | | |
| |||
2996 | 2996 | | |
2997 | 2997 | | |
2998 | 2998 | | |
2999 | | - | |
| 2999 | + | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
3000 | 3003 | | |
3001 | 3004 | | |
3002 | 3005 | | |
| |||
0 commit comments