|
|
6e8c2f |
diff -up Python-2.7.3/Lib/test/test_gdb.py.disable-stack-navigation-tests-when-optimized-in-test_gdb Python-2.7.3/Lib/test/test_gdb.py
|
|
|
6e8c2f |
--- Python-2.7.3/Lib/test/test_gdb.py.disable-stack-navigation-tests-when-optimized-in-test_gdb 2013-02-20 12:27:05.669526425 -0500
|
|
|
6e8c2f |
+++ Python-2.7.3/Lib/test/test_gdb.py 2013-02-20 12:27:05.715526422 -0500
|
|
|
6e8c2f |
@@ -653,10 +653,10 @@ class PyListTests(DebuggerTests):
|
|
|
6e8c2f |
' 3 def foo(a, b, c):\n',
|
|
|
6e8c2f |
bt)
|
|
|
6e8c2f |
|
|
|
6e8c2f |
+@unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
|
|
6e8c2f |
+@unittest.skipIf(python_is_optimized(),
|
|
|
6e8c2f |
+ "Python was compiled with optimizations")
|
|
|
6e8c2f |
class StackNavigationTests(DebuggerTests):
|
|
|
6e8c2f |
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
|
|
6e8c2f |
- @unittest.skipIf(python_is_optimized(),
|
|
|
6e8c2f |
- "Python was compiled with optimizations")
|
|
|
6e8c2f |
def test_pyup_command(self):
|
|
|
6e8c2f |
'Verify that the "py-up" command works'
|
|
|
6e8c2f |
bt = self.get_stack_trace(script=self.get_sample_script(),
|
|
|
6e8c2f |
@@ -667,7 +667,6 @@ class StackNavigationTests(DebuggerTests
|
|
|
6e8c2f |
baz\(a, b, c\)
|
|
|
6e8c2f |
$''')
|
|
|
6e8c2f |
|
|
|
6e8c2f |
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
|
|
6e8c2f |
def test_down_at_bottom(self):
|
|
|
6e8c2f |
'Verify handling of "py-down" at the bottom of the stack'
|
|
|
6e8c2f |
bt = self.get_stack_trace(script=self.get_sample_script(),
|
|
|
6e8c2f |
@@ -675,7 +674,6 @@ $''')
|
|
|
6e8c2f |
self.assertEndsWith(bt,
|
|
|
6e8c2f |
'Unable to find a newer python frame\n')
|
|
|
6e8c2f |
|
|
|
6e8c2f |
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
|
|
6e8c2f |
def test_up_at_top(self):
|
|
|
6e8c2f |
'Verify handling of "py-up" at the top of the stack'
|
|
|
6e8c2f |
bt = self.get_stack_trace(script=self.get_sample_script(),
|
|
|
6e8c2f |
@@ -683,9 +681,6 @@ $''')
|
|
|
6e8c2f |
self.assertEndsWith(bt,
|
|
|
6e8c2f |
'Unable to find an older python frame\n')
|
|
|
6e8c2f |
|
|
|
6e8c2f |
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
|
|
6e8c2f |
- @unittest.skipIf(python_is_optimized(),
|
|
|
6e8c2f |
- "Python was compiled with optimizations")
|
|
|
6e8c2f |
def test_up_then_down(self):
|
|
|
6e8c2f |
'Verify "py-up" followed by "py-down"'
|
|
|
6e8c2f |
bt = self.get_stack_trace(script=self.get_sample_script(),
|