https://github.com/python/cpython/commit/ceb351884a625de7c8cf70f3d0def5742ce85c11
commit: ceb351884a625de7c8cf70f3d0def5742ce85c11
branch: main
author: Serhiy Storchaka <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-08-13T18:08:24+03:00
summary:
Do not break long test names in the regrtest output (GH-155714)
printlist() used textwrap.fill(), which breaks words longer than the
line width.
files:
M Lib/test/libregrtest/utils.py
diff --git a/Lib/test/libregrtest/utils.py b/Lib/test/libregrtest/utils.py
index 892d204700179f..f6c13227dbbcdf 100644
--- a/Lib/test/libregrtest/utils.py
+++ b/Lib/test/libregrtest/utils.py
@@ -128,7 +128,8 @@ def printlist(x, width=70, indent=4, file=None):
blanks = ' ' * indent
# Print the sorted list: 'x' may be a '--random' list or a set()
print(textwrap.fill(' '.join(str(elt) for elt in sorted(x)), width,
- initial_indent=blanks, subsequent_indent=blanks),
+ initial_indent=blanks, subsequent_indent=blanks,
+ break_long_words=False, break_on_hyphens=False),
file=file)
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]