mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Bug #1191458: tracing over for loops now produces a line event
on each iteration. I'm not positive this is the best way to handle this. I'm also not sure that there aren't other cases where the lnotab is generated incorrectly. It would be great if people that use pdb or tracing could test heavily. Also: * Remove dead/duplicated code that wasn't used/necessary because we already handled the docstring prior to entering the loop. * add some debugging code into the compiler (#if 0'd out).
This commit is contained in:
parent
ff4b63b80f
commit
4ffedadb10
4 changed files with 56 additions and 11 deletions
|
|
@ -244,8 +244,8 @@ class TraceTestCase(unittest.TestCase):
|
|||
self.run_test(one_instr_line)
|
||||
def test_04_no_pop_blocks(self):
|
||||
self.run_test(no_pop_blocks)
|
||||
## def test_05_no_pop_tops(self):
|
||||
## self.run_test(no_pop_tops)
|
||||
def test_05_no_pop_tops(self):
|
||||
self.run_test(no_pop_tops)
|
||||
def test_06_call(self):
|
||||
self.run_test(call)
|
||||
def test_07_raise(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue