Skip to content

Commit 5c11083

Browse files
committed
Don't double-space captured output in test wrapper
Lines read already have newlines, so don't need the implicit newline added by calling `print` in a loop over the lines. One call to print with one newline is cheaper and doesn't add the double newlines.
1 parent 0112320 commit 5c11083

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/conformance/cts_exe.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,5 @@
5454
print(signal.strsignal(abs(rc)))
5555

5656
print("#### GTEST_OUTPUT ####", file=sys.stderr)
57-
for output in output_list:
58-
print(output, file=sys.stderr)
57+
print(''.join(output_list), file=sys.stderr)
5958
print("#### GTEST_OUTPUT_END ####", file=sys.stderr)

0 commit comments

Comments
 (0)