commit | author | age
|
6e8c2f
|
1 |
diff -up Python-2.7.3/Lib/test/test_gdb.py.disable-stack-navigation-tests-when-optimized-in-test_gdb Python-2.7.3/Lib/test/test_gdb.py |
CB |
2 |
--- Python-2.7.3/Lib/test/test_gdb.py.disable-stack-navigation-tests-when-optimized-in-test_gdb 2013-02-20 12:27:05.669526425 -0500 |
|
3 |
+++ Python-2.7.3/Lib/test/test_gdb.py 2013-02-20 12:27:05.715526422 -0500 |
|
4 |
@@ -653,10 +653,10 @@ class PyListTests(DebuggerTests): |
|
5 |
' 3 def foo(a, b, c):\n', |
|
6 |
bt) |
|
7 |
|
|
8 |
+@unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands") |
|
9 |
+@unittest.skipIf(python_is_optimized(), |
|
10 |
+ "Python was compiled with optimizations") |
|
11 |
class StackNavigationTests(DebuggerTests): |
|
12 |
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands") |
|
13 |
- @unittest.skipIf(python_is_optimized(), |
|
14 |
- "Python was compiled with optimizations") |
|
15 |
def test_pyup_command(self): |
|
16 |
'Verify that the "py-up" command works' |
|
17 |
bt = self.get_stack_trace(script=self.get_sample_script(), |
|
18 |
@@ -667,7 +667,6 @@ class StackNavigationTests(DebuggerTests |
|
19 |
baz\(a, b, c\) |
|
20 |
$''') |
|
21 |
|
|
22 |
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands") |
|
23 |
def test_down_at_bottom(self): |
|
24 |
'Verify handling of "py-down" at the bottom of the stack' |
|
25 |
bt = self.get_stack_trace(script=self.get_sample_script(), |
|
26 |
@@ -675,7 +674,6 @@ $''') |
|
27 |
self.assertEndsWith(bt, |
|
28 |
'Unable to find a newer python frame\n') |
|
29 |
|
|
30 |
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands") |
|
31 |
def test_up_at_top(self): |
|
32 |
'Verify handling of "py-up" at the top of the stack' |
|
33 |
bt = self.get_stack_trace(script=self.get_sample_script(), |
|
34 |
@@ -683,9 +681,6 @@ $''') |
|
35 |
self.assertEndsWith(bt, |
|
36 |
'Unable to find an older python frame\n') |
|
37 |
|
|
38 |
- @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands") |
|
39 |
- @unittest.skipIf(python_is_optimized(), |
|
40 |
- "Python was compiled with optimizations") |
|
41 |
def test_up_then_down(self): |
|
42 |
'Verify "py-up" followed by "py-down"' |
|
43 |
bt = self.get_stack_trace(script=self.get_sample_script(), |