From 2bb850cdaee9135fcf50770211b6817904950b5b Mon Sep 17 00:00:00 2001 From: Pieter Marsman Date: Sun, 14 Jul 2019 15:43:07 +0200 Subject: [PATCH] Fix error, python2 cannot handle unicode in a .py file --- tests/test_encodingdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_encodingdb.py b/tests/test_encodingdb.py index bfd2a87..36e4b11 100644 --- a/tests/test_encodingdb.py +++ b/tests/test_encodingdb.py @@ -40,7 +40,7 @@ def test_name2unicode_uni_empty_string(): According to the specification this should be mapped to an empty string, but we also want to support lowercase hexadecimals """ - assert u'€' == name2unicode('uni20ac') + assert u'\u20ac' == name2unicode('uni20ac') def test_name2unicode_uni_empty_string_long():