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

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