Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d2a01f

Browse files
committed
Issue #23822: Fix test_py_compile to not fail under -O.
1 parent fd53f98 commit 9d2a01f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_py_compile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def test_bad_coding(self):
100100
self.assertFalse(os.path.exists(
101101
importlib.util.cache_from_source(bad_coding)))
102102

103+
@unittest.skipIf(sys.flags.optimize > 0, 'test does not work with -O')
103104
def test_double_dot_no_clobber(self):
104105
# http://bugs.python.org/issue22966
105106
# py_compile foo.bar.py -> __pycache__/foo.cpython-34.pyc

0 commit comments

Comments
 (0)