mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Issue #23822: Fix test_py_compile to not fail under -O.
This commit is contained in:
parent
fd53f98459
commit
9d2a01fb2b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue