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

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