mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-45786: Allocate space for frame in frame object. (GH-29729)
This commit is contained in:
parent
7431448b81
commit
60929576e4
12 changed files with 76 additions and 181 deletions
|
|
@ -1320,9 +1320,10 @@ class SizeofTest(unittest.TestCase):
|
|||
# sys.floatinfo
|
||||
check(sys.float_info, vsize('') + self.P * len(sys.float_info))
|
||||
# frame
|
||||
import inspect
|
||||
x = inspect.currentframe()
|
||||
check(x, size('3Pi3c'))
|
||||
def func():
|
||||
return sys._getframe()
|
||||
x = func()
|
||||
check(x, size('3Pi3c8P2iciP'))
|
||||
# function
|
||||
def func(): pass
|
||||
check(func, size('14Pi'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue