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

556498
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
556498
index 3354b34..10ba0e5 100644
556498
--- a/Lib/test/test_gdb.py
556498
+++ b/Lib/test/test_gdb.py
556498
@@ -725,11 +725,10 @@ class PyListTests(DebuggerTests):
556498
                            '   2    \n'
556498
                            '   3    def foo(a, b, c):\n',
556498
                            bt)
556498
-
556498
+@unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
556498
+@unittest.skipIf(python_is_optimized(),
556498
+                "Python was compiled with optimizations")
556498
 class StackNavigationTests(DebuggerTests):
556498
-    @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
556498
-    @unittest.skipIf(python_is_optimized(),
556498
-                     "Python was compiled with optimizations")
556498
     def test_pyup_command(self):
556498
         'Verify that the "py-up" command works'
556498
         bt = self.get_stack_trace(script=self.get_sample_script(),
556498
@@ -740,7 +739,6 @@ class StackNavigationTests(DebuggerTests):
556498
     baz\(a, b, c\)
556498
 $''')
556498
 
556498
-    @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
556498
     def test_down_at_bottom(self):
556498
         'Verify handling of "py-down" at the bottom of the stack'
556498
         bt = self.get_stack_trace(script=self.get_sample_script(),
556498
@@ -748,9 +746,6 @@ $''')
556498
         self.assertEndsWith(bt,
556498
                             'Unable to find a newer python frame\n')
556498
 
556498
-    @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
556498
-    @unittest.skipIf(python_is_optimized(),
556498
-                     "Python was compiled with optimizations")
556498
     def test_up_at_top(self):
556498
         'Verify handling of "py-up" at the top of the stack'
556498
         bt = self.get_stack_trace(script=self.get_sample_script(),
556498
@@ -758,9 +753,6 @@ $''')
556498
         self.assertEndsWith(bt,
556498
                             'Unable to find an older python frame\n')
556498
 
556498
-    @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
556498
-    @unittest.skipIf(python_is_optimized(),
556498
-                     "Python was compiled with optimizations")
556498
     def test_up_then_down(self):
556498
         'Verify "py-up" followed by "py-down"'
556498
         bt = self.get_stack_trace(script=self.get_sample_script(),