mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-118934: Make PyEval_GetLocals return borrowed reference (#119769)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
This commit is contained in:
parent
162b41f577
commit
e65cb4c6f0
5 changed files with 42 additions and 2 deletions
|
@ -1603,7 +1603,7 @@ class SizeofTest(unittest.TestCase):
|
|||
def func():
|
||||
return sys._getframe()
|
||||
x = func()
|
||||
check(x, size('3Pi2cP7P2ic??2P'))
|
||||
check(x, size('3Pi2c2P7P2ic??2P'))
|
||||
# function
|
||||
def func(): pass
|
||||
check(func, size('16Pi'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue