Skip to content
Myr

Fixed a test on python 3

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 427492b · 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
31 unmodified lines
3233 # Ensure we do not strip for bytes.34 with runner.isolation() as out:35 click.echo(bytearray(b'\x1b[31mx\x1b[39m'), nl=False)36 assert out.getvalue() == '\x1b[31mx\x1b[39m'36 assert out.getvalue() == b'\x1b[31mx\x1b[39m'373839def test_filename_formatting():40 assert click.format_filename(b'foo.txt') == 'foo.txt'
5 unmodified lines