summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 27b0e3bb..b5231172 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -349,7 +349,7 @@ def test_align_text_term_width():
fill_char = ' '
term_width = shutil.get_terminal_size().columns
- expected_fill = (term_width - ansi.ansi_safe_wcswidth(text)) * fill_char
+ expected_fill = (term_width - ansi.style_aware_wcswidth(text)) * fill_char
aligned = cu.align_text(text, fill_char=fill_char, alignment=cu.TextAlignment.LEFT)
assert aligned == text + expected_fill