Skip to content

Commit 89a8cac

Browse files
authored
Merge pull request #1324 from pypa/stderr-interleaving
Fix #1161 - stdout is line-buffered during command execution
2 parents 1aa841b + 42fb827 commit 89a8cac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cibuildwheel/oci_container.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,11 @@ def call(
303303
return_code = int(return_code_str)
304304
# add the last line to output, without the footer
305305
output_io.write(line[0:footer_offset])
306+
output_io.flush()
306307
break
307308
else:
308309
output_io.write(line)
310+
output_io.flush()
309311

310312
if isinstance(output_io, io.BytesIO):
311313
output = str(output_io.getvalue(), encoding="utf8", errors="surrogateescape")

0 commit comments

Comments
 (0)