diff options
author | Brett Cannon <brett@python.org> | 2015-04-13 20:28:11 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2015-04-13 20:28:11 (GMT) |
commit | 9d2a01fb2b4fa9af408973cbee68a16467ede18b (patch) | |
tree | b86392f9541394dd59b24efc1d13557bac20e721 | |
parent | fd53f984593ffc9d68e3785088c6f0c6ef226d4f (diff) | |
download | cpython-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.py | 1 |
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 |