Commit 39b21ffd authored by Georg Brandl's avatar Georg Brandl

Fix #1913.

parent 1af737cd
......@@ -18,7 +18,7 @@ class PEP263Test(unittest.TestCase):
def test_compilestring(self):
# see #1882
c = compile("\n# coding: utf-8\nu = '\xc3\xb3'\n", "dummy", "exec")
c = compile(b"\n# coding: utf-8\nu = '\xc3\xb3'\n", "dummy", "exec")
d = {}
exec(c, d)
self.assertEqual(d['u'], '\xf3')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment