Skip to content

Commit

Permalink
Merge pull request #1324 from pypa/stderr-interleaving
Browse files Browse the repository at this point in the history
Fix #1161 - stdout is line-buffered during command execution
  • Loading branch information
joerick authored Oct 26, 2022
2 parents 1aa841b + 42fb827 commit 89a8cac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cibuildwheel/oci_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,11 @@ def call(
return_code = int(return_code_str)
# add the last line to output, without the footer
output_io.write(line[0:footer_offset])
output_io.flush()
break
else:
output_io.write(line)
output_io.flush()

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

0 comments on commit 89a8cac

Please sign in to comment.