From 5ec460222ac03ba8559b9a4a8f3975f161694094 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 3 Sep 2016 18:55:37 +0300 Subject: [PATCH] Fix unicode test for Py3 --- tests/test_tokens.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_tokens.py b/tests/test_tokens.py index 83951c5..7b24bc7 100755 --- a/tests/test_tokens.py +++ b/tests/test_tokens.py @@ -19,7 +19,7 @@ class TestTokens(unittest.TestCase): def test_encoding(self): parsed = parse("insert into test (1, 'тест')", 'utf-8')[0] query = tlist2str(parsed).encode('utf-8') - self.assertEqual(query, "INSERT INTO test (1, 'тест')") + self.assertEqual(query, u"INSERT INTO test (1, 'тест')".encode('utf-8')) def test_unicode(self): parsed = parse(u"insert into test (1, 'тест')")[0] -- 2.39.5