summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2005-12-25 22:52:32 (GMT)
committerTim Peters <tim.peters@gmail.com>2005-12-25 22:52:32 (GMT)
commit83a8c393b06d24b3c6b252b7614c34110c369c43 (patch)
tree42d8b41321a8dbbbcf45c62ed7bb380783edea67
parent903a9444a84b4af2c947e15d08968f9e990ae2bc (diff)
downloadcpython-83a8c393b06d24b3c6b252b7614c34110c369c43.zip
cpython-83a8c393b06d24b3c6b252b7614c34110c369c43.tar.gz
cpython-83a8c393b06d24b3c6b252b7614c34110c369c43.tar.bz2
test_bug_1333982(): This one must fail under -O.
All the --all test pass using -O on WinXP now.
-rw-r--r--Lib/test/test_dis.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py
index ff4e34f..d8d53cd 100644
--- a/Lib/test/test_dis.py
+++ b/Lib/test/test_dis.py
@@ -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)