Skip to content
Myr

Fixed a broken test on 3.x

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 63e9281 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/test_utils.py+1 added-1 removed
14 unmodified lines
15 assert click.format_filename(b'foo.txt') == 'foo.txt'16 assert click.format_filename(b'/x/foo.txt') == '/x/foo.txt'17 assert click.format_filename(u'/x/foo.txt') == '/x/foo.txt'18 assert click.format_filename(u'/x/foo.txt', shorten=True) == 'foo.txt'19 assert click.format_filename('/x/foo\xff.txt', shorten=True) \19 assert click.format_filename(b'/x/foo\xff.txt', shorten=True) \20 == u'foo\ufffd.txt'