Skip to content

Commit

Permalink
Fix test_monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mpage committed Aug 5, 2024
1 parent fdd055e commit 545a120
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Lib/test/test_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,11 +1185,11 @@ def func2():
('instruction', 'func2', 8),
('instruction', 'func2', 28),
('instruction', 'func2', 30),
('instruction', 'func2', 38),
('line', 'func2', 3),
('instruction', 'func2', 40),
('instruction', 'func2', 42),
('line', 'func2', 3),
('instruction', 'func2', 44),
('instruction', 'func2', 46),
('instruction', 'func2', 48),
('line', 'get_events', 11)])

def test_try_except(self):
Expand Down Expand Up @@ -1518,8 +1518,8 @@ def func():
('branch', 'func', 4, 4),
('line', 'func', 5),
('line', 'meth', 1),
('jump', 'func', 5, '[offset=118]'),
('branch', 'func', '[offset=122]', '[offset=126]'),
('jump', 'func', 5, '[offset=126]'),
('branch', 'func', '[offset=130]', '[offset=134]'),
('line', 'get_events', 11)])

self.check_events(func, recorders = FLOW_AND_LINE_RECORDERS, expected = [
Expand All @@ -1533,8 +1533,8 @@ def func():
('line', 'func', 5),
('line', 'meth', 1),
('return', 'meth', None),
('jump', 'func', 5, '[offset=118]'),
('branch', 'func', '[offset=122]', '[offset=126]'),
('jump', 'func', 5, '[offset=126]'),
('branch', 'func', '[offset=130]', '[offset=134]'),
('return', 'func', None),
('line', 'get_events', 11)])

Expand Down

0 comments on commit 545a120

Please sign in to comment.