Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sigvaldm committed Sep 5, 2018
1 parent 3713c47 commit 71bc6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_frmt.py
Expand Up @@ -16,7 +16,7 @@ def test_fit_text():
assert fit_text('abcdef', 5, suffix='!', align='>') == 'abcd!'

def test_fit_text_terminal_width():
width = shutil.get_terminal_size().columns
width = get_terminal_size().columns
assert fit_text('a'*width) == 'a'*width
assert fit_text('a'*(width+1)) == 'a'*(width-3)+'...'

Expand Down

0 comments on commit 71bc6a6

Please sign in to comment.