mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bpo-45256: Don't track the exact depth of each InterpreterFrame
(GH-30372)
This commit is contained in:
parent
cae55542d2
commit
332e6b9725
4 changed files with 16 additions and 17 deletions
|
@ -1323,7 +1323,7 @@ class SizeofTest(unittest.TestCase):
|
|||
def func():
|
||||
return sys._getframe()
|
||||
x = func()
|
||||
check(x, size('3Pi3c8P2iciP'))
|
||||
check(x, size('3Pi3c8P2ic?P'))
|
||||
# function
|
||||
def func(): pass
|
||||
check(func, size('14Pi'))
|
||||
|
@ -1340,7 +1340,7 @@ class SizeofTest(unittest.TestCase):
|
|||
check(bar, size('PP'))
|
||||
# generator
|
||||
def get_gen(): yield 1
|
||||
check(get_gen(), size('P2P4P4c8P2iciP'))
|
||||
check(get_gen(), size('P2P4P4c8P2ic?P'))
|
||||
# iterator
|
||||
check(iter('abc'), size('lP'))
|
||||
# callable-iterator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue