mirror of https://github.com/python/cpython
Fix #1913.
This commit is contained in:
parent
1af737cd1e
commit
39b21ffd3c
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue