From 9fe6d86709b0e769602ff55a6e5a202c440b9d8a Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Sun, 8 Dec 2013 00:20:35 -0600 Subject: Issue 19572: More silently skipped tests explicitly skipped. --- Lib/test/test_dis.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Lib/test/test_dis.py') diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index d1355bbb96..30cada18da 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -217,16 +217,18 @@ class DisTests(unittest.TestCase): def test_bug_708901(self): self.do_disassembly_test(bug708901, dis_bug708901) + # Test has been disabled due to change in the way + # list comps are handled. The byte code now includes + # a memory address and a file location, so they change from + # run to run. + @unittest.skip('disabled due to a change in the way list comps are handled') def test_bug_1333982(self): # XXX: re-enable this test! # This one is checking bytecodes generated for an `assert` statement, # so fails if the tests are run with -O. Skip this test then. - pass # Test has been disabled due to change in the way - # list comps are handled. The byte code now includes - # a memory address and a file location, so they change from - # run to run. - # if __debug__: - # self.do_disassembly_test(bug1333982, dis_bug1333982) + + if __debug__: + self.do_disassembly_test(bug1333982, dis_bug1333982) def test_big_linenos(self): def func(count): -- cgit v1.2.1