Issue #23822: Fix test_py_compile to not fail under -O.

This commit is contained in:
Brett Cannon 2015-04-13 16:28:11 -04:00
parent fd53f98459
commit 9d2a01fb2b

View file

@ -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