Skip to content

Commit 126ee3a

Browse files
committed
Merge branch 'fix/wcwidth' into python-slip39
2 parents 5c49c44 + abe2989 commit 126ee3a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_textwrapper.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_wrap_color_line_longword():
177177

178178

179179
def test_wrap_color_line_longword_zerowidth():
180-
"""Lines with zero-width symbols (eg. accents) must include those symbols with the prior symbol.
180+
"""Lines with zero-width symbols (accents) must include those symbols with the prior symbol.
181181
Let's exercise the calculation where the available symbols never satisfy the available width,
182182
and ensure chunk calculation succeeds and ANSI colors are maintained.
183183
@@ -199,7 +199,10 @@ def test_wrap_color_line_longword_zerowidth():
199199
skip("test_wrap_wide_char is skipped")
200200

201201
# Exactly filled, with a green zero-width segment at the end.
202-
data = "This_is_A\u20DD_\033[31mte\u0301st_string_\u200bto_te\u0301\u0308st_a\u0308ccent\033[32m\u200b\033[0m"
202+
data = (
203+
"This_is_A\u20DD_\033[31mte\u0301st_string_\u200b"
204+
"to_te\u0301\u0308st_a\u0308ccent\033[32m\u200b\033[0m"
205+
)
203206

204207
expected = [
205208
"This_is_A\u20DD_\033[31mte\u0301\033[0m",

0 commit comments

Comments
 (0)