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

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