Skip to content

Commit 65fa1a0

Browse files
[3.14] Do not break long test names in the regrtest output (GH-155714) (GH-155723)
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 8ad9557 commit 65fa1a0

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

124125

0 commit comments

Comments
 (0)