aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_monitoring.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-10-29 11:15:42 +0000
committerGitHub <noreply@github.com>2024-10-29 11:15:42 +0000
commitfaa3272fb8d63d481a136cc0467a0cba6ed7b264 (patch)
tree474ac9edbff637a8edb280846a1d3d9b113915c4 /Lib/test/test_monitoring.py
parent67f5c5bd6fcc956a785edef3be67e8cbe470cd31 (diff)
downloadcpython-faa3272fb8d63d481a136cc0467a0cba6ed7b264.tar.gz
cpython-faa3272fb8d63d481a136cc0467a0cba6ed7b264.zip
GH-125837: Split `LOAD_CONST` into three. (GH-125972)
* Add LOAD_CONST_IMMORTAL opcode * Add LOAD_SMALL_INT opcode * Remove RETURN_CONST opcode
Diffstat (limited to 'Lib/test/test_monitoring.py')
-rw-r--r--Lib/test/test_monitoring.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_monitoring.py b/Lib/test/test_monitoring.py
index 1b06816214e..b640aa08e4a 100644
--- a/Lib/test/test_monitoring.py
+++ b/Lib/test/test_monitoring.py
@@ -1205,6 +1205,7 @@ class TestLineAndInstructionEvents(CheckEvents):
('instruction', 'func1', 10),
('instruction', 'func1', 12),
('instruction', 'func1', 14),
+ ('instruction', 'func1', 16),
('line', 'get_events', 11)])
def test_c_call(self):
@@ -1229,6 +1230,7 @@ class TestLineAndInstructionEvents(CheckEvents):
('instruction', 'func2', 40),
('instruction', 'func2', 42),
('instruction', 'func2', 44),
+ ('instruction', 'func2', 46),
('line', 'get_events', 11)])
def test_try_except(self):
@@ -1262,6 +1264,7 @@ class TestLineAndInstructionEvents(CheckEvents):
('instruction', 'func3', 30),
('instruction', 'func3', 32),
('instruction', 'func3', 34),
+ ('instruction', 'func3', 36),
('line', 'get_events', 11)])
def test_with_restart(self):
@@ -1282,6 +1285,7 @@ class TestLineAndInstructionEvents(CheckEvents):
('instruction', 'func1', 10),
('instruction', 'func1', 12),
('instruction', 'func1', 14),
+ ('instruction', 'func1', 16),
('line', 'get_events', 11)])
sys.monitoring.restart_events()
@@ -1298,6 +1302,7 @@ class TestLineAndInstructionEvents(CheckEvents):
('instruction', 'func1', 10),
('instruction', 'func1', 12),
('instruction', 'func1', 14),
+ ('instruction', 'func1', 16),
('line', 'get_events', 11)])
def test_turn_off_only_instruction(self):