]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Closes #13699. Skipped two tests if Python is optimised.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Wed, 4 Jan 2012 12:07:30 +0000 (12:07 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Wed, 4 Jan 2012 12:07:30 +0000 (12:07 +0000)
Lib/test/test_gdb.py

index 82dba2e022e840bb63de60b736711918742903e1..d507a129cec1c65d886e56732c21e74f4a302e1b 100644 (file)
@@ -662,6 +662,8 @@ class PyPrintTests(DebuggerTests):
         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 @@ class PyLocalsTests(DebuggerTests):
                                     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'])