mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
test_bug_1333982(): This one must fail under -O.
All the --all test pass using -O on WinXP now.
This commit is contained in:
parent
903a9444a8
commit
83a8c393b0
1 changed files with 4 additions and 1 deletions
|
@ -121,7 +121,10 @@ class DisTests(unittest.TestCase):
|
|||
self.do_disassembly_test(bug708901, dis_bug708901)
|
||||
|
||||
def test_bug_1333982(self):
|
||||
self.do_disassembly_test(bug1333982, dis_bug1333982)
|
||||
# This one is checking bytecodes generated for an `assert` statement,
|
||||
# so fails if the tests are run with -O. Skip this test then.
|
||||
if __debug__:
|
||||
self.do_disassembly_test(bug1333982, dis_bug1333982)
|
||||
|
||||
def test_main():
|
||||
run_unittest(DisTests)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue