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

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