Fixed tests for python 2.x.

This commit is contained in:
Герасименко Евгений
2016-12-29 10:30:56 +07:00
parent 1c34ac3ae6
commit 0cb6ddaecf
+1 -1
View File
@@ -282,7 +282,7 @@ class TestGuessJSONUTF:
('utf-32-le', 'utf-32')
))
def test_guess_by_bom(self, encoding, expected):
data = '\ufeff{}'.encode(encoding)
data = u'\ufeff{}'.encode(encoding)
assert guess_json_utf(data) == expected