We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 903a944 commit 83a8c39Copy full SHA for 83a8c39
1 file changed
Lib/test/test_dis.py
@@ -121,7 +121,10 @@ def test_bug_708901(self):
121
self.do_disassembly_test(bug708901, dis_bug708901)
122
123
def test_bug_1333982(self):
124
- self.do_disassembly_test(bug1333982, dis_bug1333982)
+ # This one is checking bytecodes generated for an `assert` statement,
125
+ # so fails if the tests are run with -O. Skip this test then.
126
+ if __debug__:
127
+ self.do_disassembly_test(bug1333982, dis_bug1333982)
128
129
def test_main():
130
run_unittest(DisTests)
0 commit comments