]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix #1913.
authorGeorg Brandl <georg@python.org>
Wed, 23 Jan 2008 17:10:38 +0000 (17:10 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 23 Jan 2008 17:10:38 +0000 (17:10 +0000)
Lib/test/test_pep263.py

index cacf1d6db3464d0c5eca556cf1fed2cd977c64e6..cc126ba687c571d69b282dc368cd0fea6e938e01 100644 (file)
@@ -18,7 +18,7 @@ class PEP263Test(unittest.TestCase):
 \r
     def test_compilestring(self):\r
         # see #1882\r
-        c = compile("\n# coding: utf-8\nu = '\xc3\xb3'\n", "dummy", "exec")\r
+        c = compile(b"\n# coding: utf-8\nu = '\xc3\xb3'\n", "dummy", "exec")\r
         d = {}\r
         exec(c, d)\r
         self.assertEqual(d['u'], '\xf3')\r