mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
[3.13] gh-93691: fix too broad source locations of for statement iterators (GH-120330) (#120399)
gh-93691: fix too broad source locations of for statement iterators (GH-120330)
(cherry picked from commit 97b69db167
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This commit is contained in:
parent
10821ccf06
commit
39825a7533
6 changed files with 63 additions and 8 deletions
|
@ -1650,15 +1650,15 @@ class TraceTestCase(unittest.TestCase):
|
|||
EXPECTED_EVENTS = [
|
||||
(0, 'call'),
|
||||
(2, 'line'),
|
||||
(1, 'line'),
|
||||
(-3, 'call'),
|
||||
(-2, 'line'),
|
||||
(-2, 'return'),
|
||||
(4, 'line'),
|
||||
(1, 'line'),
|
||||
(4, 'line'),
|
||||
(2, 'line'),
|
||||
(-2, 'call'),
|
||||
(-2, 'return'),
|
||||
(1, 'return'),
|
||||
(2, 'return'),
|
||||
]
|
||||
|
||||
# C level events should be the same as expected and the same as Python level.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue