[Python-checkins] commit of r41811 - python/trunk/Lib/test/test_dis.py
tim.peters
python-checkins at python.org
Sun Dec 25 23:52:34 CET 2005
Author: tim.peters
Date: Sun Dec 25 23:52:32 2005
New Revision: 41811
Modified:
python/trunk/Lib/test/test_dis.py
Log:
test_bug_1333982(): This one must fail under -O.
All the --all test pass using -O on WinXP now.
Modified: python/trunk/Lib/test/test_dis.py
==============================================================================
--- python/trunk/Lib/test/test_dis.py (original)
+++ python/trunk/Lib/test/test_dis.py Sun Dec 25 23:52:32 2005
@@ -121,7 +121,10 @@
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)
More information about the Python-checkins
mailing list