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

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