From: Oleg Broytman Date: Sat, 3 Sep 2016 15:55:37 +0000 (+0300) Subject: Fix unicode test for Py3 X-Git-Tag: 0.0.1~3 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=5ec460222ac03ba8559b9a4a8f3975f161694094;p=sqlconvert.git Fix unicode test for Py3 --- 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]