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

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