summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_monitoring.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2025-01-20 17:09:23 (GMT)
committerGitHub <noreply@github.com>2025-01-20 17:09:23 (GMT)
commitab61d3f4303d14a413bc9ae6557c730ffdf7579e (patch)
treeec35e41ce467f4cb281208970cf453a680d82aed /Lib/test/test_monitoring.py
parent0a6412f9cc9e694e76299cfbd73ec969b7d47af6 (diff)
downloadcpython-ab61d3f4303d14a413bc9ae6557c730ffdf7579e.zip
cpython-ab61d3f4303d14a413bc9ae6557c730ffdf7579e.tar.gz
cpython-ab61d3f4303d14a413bc9ae6557c730ffdf7579e.tar.bz2
GH-128914: Remove conditional stack effects from `bytecodes.c` and the code generators (GH-128918)
Diffstat (limited to 'Lib/test/test_monitoring.py')
-rw-r--r--Lib/test/test_monitoring.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/Lib/test/test_monitoring.py b/Lib/test/test_monitoring.py
index 364381e..7ac2910 100644
--- a/Lib/test/test_monitoring.py
+++ b/Lib/test/test_monitoring.py
@@ -1588,11 +1588,11 @@ class TestBranchAndJumpEvents(CheckEvents):
('branch right', 'whilefunc', 1, 3)])
self.check_events(func, recorders = BRANCH_OFFSET_RECORDERS, expected = [
- ('branch left', 'func', 28, 32),
- ('branch right', 'func', 44, 58),
- ('branch left', 'func', 28, 32),
- ('branch left', 'func', 44, 50),
- ('branch right', 'func', 28, 70)])
+ ('branch left', 'func', 30, 34),
+ ('branch right', 'func', 46, 60),
+ ('branch left', 'func', 30, 34),
+ ('branch left', 'func', 46, 52),
+ ('branch right', 'func', 30, 72)])
def test_except_star(self):
@@ -1762,7 +1762,8 @@ class TestLoadSuperAttr(CheckEvents):
return self._exec(co)
def _has_load_super_attr(self, co):
- has = any(instr.opname == "LOAD_SUPER_ATTR" for instr in dis.get_instructions(co))
+ has = any(instr.opname in ("LOAD_SUPER_ATTR", "LOAD_SUPER_METHOD")
+ for instr in dis.get_instructions(co))
if not has:
has = any(
isinstance(c, types.CodeType) and self._has_load_super_attr(c)