changeset: 74268:dfffb293f4b3 user: Vinay Sajip date: Wed Jan 04 12:07:30 2012 +0000 files: Lib/test/test_gdb.py description: Closes #13699. Skipped two tests if Python is optimised. diff -r 57295c4d81ac -r dfffb293f4b3 Lib/test/test_gdb.py --- a/Lib/test/test_gdb.py Wed Jan 04 12:02:26 2012 +0000 +++ b/Lib/test/test_gdb.py Wed Jan 04 12:07:30 2012 +0000 @@ -662,6 +662,8 @@ self.assertMultilineMatches(bt, r".*\nlocal 'args' = \(1, 2, 3\)\n.*") + @unittest.skipIf(python_is_optimized(), + "Python was compiled with optimizations") @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands") def test_print_after_up(self): bt = self.get_stack_trace(script=self.get_sample_script(), @@ -695,6 +697,8 @@ r".*\nargs = \(1, 2, 3\)\n.*") @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands") + @unittest.skipIf(python_is_optimized(), + "Python was compiled with optimizations") def test_locals_after_up(self): bt = self.get_stack_trace(script=self.get_sample_script(), cmds_after_breakpoint=['py-up', 'py-locals'])

AltStyle によって変換されたページ (->オリジナル) /