Skip to content

Commit ceb3518

Browse files
Do not break long test names in the regrtest output (GH-155714)
printlist() used textwrap.fill(), which breaks words longer than the line width.
1 parent fa90680 commit ceb3518

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/libregrtest/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ def printlist(x, width=70, indent=4, file=None):
128128
blanks = ' ' * indent
129129
# Print the sorted list: 'x' may be a '--random' list or a set()
130130
print(textwrap.fill(' '.join(str(elt) for elt in sorted(x)), width,
131-
initial_indent=blanks, subsequent_indent=blanks),
131+
initial_indent=blanks, subsequent_indent=blanks,
132+
break_long_words=False, break_on_hyphens=False),
132133
file=file)
133134

134135

0 commit comments

Comments
 (0)