From 12094de8e4bcd58f10452f9de9b8ab3a7f503258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 16 Nov 2019 17:10:15 +0100 Subject: [PATCH] tests: only check simplify() on bytes in py2 (#36515) --- tests/test_misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_misc.py b/tests/test_misc.py index 1deb661f5..c309d212e 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -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'