Commit d9fa578
committed
Add flush=True before os._exit and add NEWS entry
os._exit() does not flush Python IO buffers, so the print(os.getpid())
output was lost when stdout is piped. Add flush=True to ensure the
child PID reaches the parent.
Also add the required NEWS entry.
<claude>1 parent d9b8d13 commit d9fa578
File tree
2 files changed
+5
-1
lines changed- Lib/test
- Misc/NEWS.d/next/Tests
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments