summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2015-04-13 20:28:11 (GMT)
committerBrett Cannon <brett@python.org>2015-04-13 20:28:11 (GMT)
commit9d2a01fb2b4fa9af408973cbee68a16467ede18b (patch)
treeb86392f9541394dd59b24efc1d13557bac20e721
parentfd53f984593ffc9d68e3785088c6f0c6ef226d4f (diff)
downloadcpython-9d2a01fb2b4fa9af408973cbee68a16467ede18b.zip
cpython-9d2a01fb2b4fa9af408973cbee68a16467ede18b.tar.gz
cpython-9d2a01fb2b4fa9af408973cbee68a16467ede18b.tar.bz2
Issue #23822: Fix test_py_compile to not fail under -O.
-rw-r--r--Lib/test/test_py_compile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py
index bff35db..03cca5d 100644
--- a/Lib/test/test_py_compile.py
+++ b/Lib/test/test_py_compile.py
@@ -100,6 +100,7 @@ class PyCompileTests(unittest.TestCase):
self.assertFalse(os.path.exists(
importlib.util.cache_from_source(bad_coding)))
+ @unittest.skipIf(sys.flags.optimize > 0, 'test does not work with -O')
def test_double_dot_no_clobber(self):
# http://bugs.python.org/issue22966
# py_compile foo.bar.py -> __pycache__/foo.cpython-34.pyc