Blame 00167-disable-stack-navigation-tests-when-optimized-in-test_gdb.patch

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