Skip to content

Commit 412feb8

Browse files
[3.13] Do not break long test names in the regrtest output (GH-155714) (GH-155724)
printlist() used textwrap.fill(), which breaks words longer than the line width. (cherry picked from commit ceb3518) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 85977c8 commit 412feb8

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
@@ -119,7 +119,8 @@ def printlist(x, width=70, indent=4, file=None):
119119
blanks = ' ' * indent
120120
# Print the sorted list: 'x' may be a '--random' list or a set()
121121
print(textwrap.fill(' '.join(str(elt) for elt in sorted(x)), width,
122-
initial_indent=blanks, subsequent_indent=blanks),
122+
initial_indent=blanks, subsequent_indent=blanks,
123+
break_long_words=False, break_on_hyphens=False),
123124
file=file)
124125

125126

0 commit comments

Comments
 (0)