This commit is contained in:
Georg Brandl 2008-01-23 17:10:38 +00:00
parent 1af737cd1e
commit 39b21ffd3c
1 changed files with 1 additions and 1 deletions

View File

@ -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')