tests: only check simplify() on bytes in py2 (#36515)

This commit is contained in:
Frédéric Péters 2019-11-16 17:10:15 +01:00
parent 859683f690
commit 12094de8e4
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@ def test_simplify_apostrophes():
def test_simplify_accented():
assert simplify(u'cliché') == 'cliche'
assert simplify(u'cliché'.encode('iso-8859-1')) == 'cliche'
if six.PY2:
assert simplify(u'cliché'.encode('iso-8859-1')) == 'cliche'
def test_simplify_remove():
assert simplify('this is: (a) "test"') == 'this-is-a-test'