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

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