mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix #1913.
This commit is contained in:
parent
1af737cd1e
commit
39b21ffd3c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue