diff options
Diffstat (limited to 'Lib/test/test_pep263.py')
| -rw-r--r-- | Lib/test/test_pep263.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_pep263.py b/Lib/test/test_pep263.py index cc126ba687..92065c9fe1 100644 --- a/Lib/test/test_pep263.py +++ b/Lib/test/test_pep263.py @@ -23,6 +23,13 @@ class PEP263Test(unittest.TestCase): exec(c, d)
self.assertEqual(d['u'], '\xf3')
+ def test_issue2301(self):
+ try:
+ compile(b"# coding: cp932\nprint '\x94\x4e'", "dummy", "exec")
+ except SyntaxError as v:
+ self.assertEquals(v.text, "print '\u5e74'")
+ else:
+ self.fail()
def test_main():
test_support.run_unittest(PEP263Test)
|
