diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_coding.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_coding.py b/Lib/test/test_coding.py index e83015e..62cf555 100644 --- a/Lib/test/test_coding.py +++ b/Lib/test/test_coding.py @@ -21,6 +21,11 @@ class CodingTest(unittest.TestCase): fp.close() self.assertRaises(SyntaxError, compile, text, filename, 'exec') + def test_exec_valid_coding(self): + d = {} + exec('# coding: cp949\na = 5\n', d) + self.assertEqual(d['a'], 5) + def test_main(): test.test_support.run_unittest(CodingTest) |