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

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