summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gdb.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-01-05 11:45:31 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-01-05 11:45:31 (GMT)
commitcdf6cd9ff30b75c72cbb8ad20293602a197dce6b (patch)
tree9d19e971a140c569a34c5181cbd26cbef983b037 /Lib/test/test_gdb.py
parent98492a50ea30d2dffd7e16054e3aeb35cb2fed8d (diff)
downloadcpython-cdf6cd9ff30b75c72cbb8ad20293602a197dce6b.zip
cpython-cdf6cd9ff30b75c72cbb8ad20293602a197dce6b.tar.gz
cpython-cdf6cd9ff30b75c72cbb8ad20293602a197dce6b.tar.bz2
Closes #13699. Skipped two tests if Python is optimised.
Diffstat (limited to 'Lib/test/test_gdb.py')
-rw-r--r--Lib/test/test_gdb.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index a429db9..651aaec 100644
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -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'])