mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Closes #13699. Skipped two tests if Python is optimised.
This commit is contained in:
parent
98492a50ea
commit
cdf6cd9ff3
1 changed files with 4 additions and 0 deletions
|
@ -662,6 +662,8 @@ class PyPrintTests(DebuggerTests):
|
||||||
self.assertMultilineMatches(bt,
|
self.assertMultilineMatches(bt,
|
||||||
r".*\nlocal 'args' = \(1, 2, 3\)\n.*")
|
r".*\nlocal 'args' = \(1, 2, 3\)\n.*")
|
||||||
|
|
||||||
|
@unittest.skipIf(python_is_optimized(),
|
||||||
|
"Python was compiled with optimizations")
|
||||||
@unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
@unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
||||||
def test_print_after_up(self):
|
def test_print_after_up(self):
|
||||||
bt = self.get_stack_trace(script=self.get_sample_script(),
|
bt = self.get_stack_trace(script=self.get_sample_script(),
|
||||||
|
@ -695,6 +697,8 @@ class PyLocalsTests(DebuggerTests):
|
||||||
r".*\nargs = \(1, 2, 3\)\n.*")
|
r".*\nargs = \(1, 2, 3\)\n.*")
|
||||||
|
|
||||||
@unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
@unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
|
||||||
|
@unittest.skipIf(python_is_optimized(),
|
||||||
|
"Python was compiled with optimizations")
|
||||||
def test_locals_after_up(self):
|
def test_locals_after_up(self):
|
||||||
bt = self.get_stack_trace(script=self.get_sample_script(),
|
bt = self.get_stack_trace(script=self.get_sample_script(),
|
||||||
cmds_after_breakpoint=['py-up', 'py-locals'])
|
cmds_after_breakpoint=['py-up', 'py-locals'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue