churchyard / rpms / python2

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