summaryrefslogtreecommitdiffstats
path: root/00186-dont-raise-from-py_compile.patch
diff options
context:
space:
mode:
authorMatej Stuchlik <mstuchli@redhat.com>2015-06-19 07:41:21 +0200
committerMatej Stuchlik <mstuchli@redhat.com>2015-06-19 07:41:21 +0200
commit2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71 (patch)
tree4069b0081d6490198bbb633cc85ae62a6a89dc53 /00186-dont-raise-from-py_compile.patch
parentf5845b442d5e3c252df4de7d56bbafe3e8737613 (diff)
downloadpython34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.tar.gz
python34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.tar.xz
python34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.zip
Initial import (#1219411)
Diffstat (limited to '00186-dont-raise-from-py_compile.patch')
-rw-r--r--00186-dont-raise-from-py_compile.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/00186-dont-raise-from-py_compile.patch b/00186-dont-raise-from-py_compile.patch
new file mode 100644
index 0000000..25c4a9d
--- /dev/null
+++ b/00186-dont-raise-from-py_compile.patch
@@ -0,0 +1,14 @@
+diff -r 7fa3e824a4ee Lib/test/test_py_compile.py
+--- a/Lib/test/test_py_compile.py Tue Oct 29 22:25:06 2013 -0400
++++ b/Lib/test/test_py_compile.py Wed Oct 30 11:08:31 2013 +0100
+@@ -54,6 +54,10 @@
+ self.assertTrue(os.path.exists(self.pyc_path))
+ self.assertFalse(os.path.exists(self.cache_path))
+
++ def test_bad_coding(self):
++ bad_coding = os.path.join(os.path.dirname(__file__), 'bad_coding2.py')
++ self.assertIsNone(py_compile.compile(bad_coding, doraise=False))
++
+ def test_relative_path(self):
+ py_compile.compile(os.path.relpath(self.source_path),
+ os.path.relpath(self.pyc_path))