[Python-checkins] cpython: Issue #23822: Fix test_py_compile to not fail under -O.
brett.cannon
python-checkins at python.org
Mon Apr 13 22:28:18 CEST 2015
https://hg.python.org/cpython/rev/f4dd8629ec98
changeset: 95613:f4dd8629ec98
user: Brett Cannon <brett at python.org>
date: Mon Apr 13 16:28:11 2015 -0400
summary:
Issue #23822: Fix test_py_compile to not fail under -O.
files:
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
--- a/Lib/test/test_py_compile.py
+++ b/Lib/test/test_py_compile.py
@@ -100,6 +100,7 @@
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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list