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

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