churchyard / rpms / python38

Forked from rpms/python38 2 years ago
Clone
3dbbc1
diff -r 7fa3e824a4ee Lib/test/test_py_compile.py
3dbbc1
--- a/Lib/test/test_py_compile.py	Tue Oct 29 22:25:06 2013 -0400
3dbbc1
+++ b/Lib/test/test_py_compile.py	Wed Oct 30 11:08:31 2013 +0100
3dbbc1
@@ -54,6 +54,10 @@
3dbbc1
         self.assertTrue(os.path.exists(self.pyc_path))
3dbbc1
         self.assertFalse(os.path.exists(self.cache_path))
3dbbc1
 
3dbbc1
+    def test_bad_coding(self):
3dbbc1
+        bad_coding = os.path.join(os.path.dirname(__file__), 'bad_coding2.py')
3dbbc1
+        self.assertIsNone(py_compile.compile(bad_coding, doraise=False))
3dbbc1
+
f5250e
     def test_relative_path(self):
f5250e
         py_compile.compile(os.path.relpath(self.source_path),
f5250e
                            os.path.relpath(self.pyc_path))