summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-07-18 11:47:21 (GMT)
committerGitHub <noreply@github.com>2024-07-18 11:47:21 (GMT)
commit169324c27a39a4d6a4dd7b313b0de6ab2d1f7e6b (patch)
tree89b908cb6b3957a88b567dcc4c44b9873865433f /Lib
parent24cf867bed6035f33cd3b38d89d303b7522f12a6 (diff)
downloadcpython-169324c27a39a4d6a4dd7b313b0de6ab2d1f7e6b.zip
cpython-169324c27a39a4d6a4dd7b313b0de6ab2d1f7e6b.tar.gz
cpython-169324c27a39a4d6a4dd7b313b0de6ab2d1f7e6b.tar.bz2
GH-120024: Use pointer for stack pointer (GH-121923)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_sys.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 81789b2..7e4bc98 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -1603,7 +1603,8 @@ class SizeofTest(unittest.TestCase):
def func():
return sys._getframe()
x = func()
- check(x, size('3Pi2c2P7P2ic??2P'))
+ INTERPRETER_FRAME = '9PhcP'
+ check(x, size('3PiccPP' + INTERPRETER_FRAME + 'P'))
# function
def func(): pass
check(func, size('16Pi'))
@@ -1620,7 +1621,7 @@ class SizeofTest(unittest.TestCase):
check(bar, size('PP'))
# generator
def get_gen(): yield 1
- check(get_gen(), size('PP4P4c7P2ic??2P'))
+ check(get_gen(), size('6P4c' + INTERPRETER_FRAME + 'P'))
# iterator
check(iter('abc'), size('lP'))
# callable-iterator