Blame 00186-dont-raise-from-py_compile.patch

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