d63f6bd94f
* Wed Feb 20 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-21 - don't run any stack navigation tests in test_gdb for optimized builds (patch 167; rhbz#912025)
44 lines
2.2 KiB
Diff
44 lines
2.2 KiB
Diff
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
|
|
--- 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
|
|
+++ Python-2.7.3/Lib/test/test_gdb.py 2013-02-20 12:27:05.715526422 -0500
|
|
@@ -653,10 +653,10 @@ class PyListTests(DebuggerTests):
|
|
' 3 def foo(a, b, c):\n',
|
|
bt)
|
|
|
|
+@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(),
|
|
@@ -667,7 +667,6 @@ class StackNavigationTests(DebuggerTests
|
|
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(),
|
|
@@ -675,7 +674,6 @@ $''')
|
|
self.assertEndsWith(bt,
|
|
'Unable to find a newer python frame\n')
|
|
|
|
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
|
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(),
|
|
@@ -683,9 +681,6 @@ $''')
|
|
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(),
|