2017-01-11 19:20:31 +00:00
|
|
|
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
|
|
|
|
index 3354b34..10ba0e5 100644
|
|
|
|
--- a/Lib/test/test_gdb.py
|
|
|
|
+++ b/Lib/test/test_gdb.py
|
|
|
|
@@ -725,11 +725,10 @@ class PyListTests(DebuggerTests):
|
|
|
|
' 2 \n'
|
2013-02-20 17:33:39 +00:00
|
|
|
' 3 def foo(a, b, c):\n',
|
|
|
|
bt)
|
2017-01-11 19:20:31 +00:00
|
|
|
-
|
2013-02-20 17:33:39 +00:00
|
|
|
+@unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
|
|
|
+@unittest.skipIf(python_is_optimized(),
|
|
|
|
+ "Python was compiled with optimizations")
|
|
|
|
class StackNavigationTests(DebuggerTests):
|
|
|
|
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
|
|
|
- @unittest.skipIf(python_is_optimized(),
|
|
|
|
- "Python was compiled with optimizations")
|
|
|
|
def test_pyup_command(self):
|
|
|
|
'Verify that the "py-up" command works'
|
|
|
|
bt = self.get_stack_trace(script=self.get_sample_script(),
|
2017-01-11 19:20:31 +00:00
|
|
|
@@ -740,7 +739,6 @@ class StackNavigationTests(DebuggerTests):
|
2013-02-20 17:33:39 +00:00
|
|
|
baz\(a, b, c\)
|
|
|
|
$''')
|
|
|
|
|
|
|
|
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
|
|
|
def test_down_at_bottom(self):
|
|
|
|
'Verify handling of "py-down" at the bottom of the stack'
|
|
|
|
bt = self.get_stack_trace(script=self.get_sample_script(),
|
2017-01-11 19:20:31 +00:00
|
|
|
@@ -748,9 +746,6 @@ $''')
|
2013-02-20 17:33:39 +00:00
|
|
|
self.assertEndsWith(bt,
|
|
|
|
'Unable to find a newer python frame\n')
|
|
|
|
|
|
|
|
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
2017-01-11 19:20:31 +00:00
|
|
|
- @unittest.skipIf(python_is_optimized(),
|
|
|
|
- "Python was compiled with optimizations")
|
2013-02-20 17:33:39 +00:00
|
|
|
def test_up_at_top(self):
|
|
|
|
'Verify handling of "py-up" at the top of the stack'
|
|
|
|
bt = self.get_stack_trace(script=self.get_sample_script(),
|
2017-01-11 19:20:31 +00:00
|
|
|
@@ -758,9 +753,6 @@ $''')
|
2013-02-20 17:33:39 +00:00
|
|
|
self.assertEndsWith(bt,
|
|
|
|
'Unable to find an older python frame\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_up_then_down(self):
|
|
|
|
'Verify "py-up" followed by "py-down"'
|
|
|
|
bt = self.get_stack_trace(script=self.get_sample_script(),
|