gh-118934: Make PyEval_GetLocals return borrowed reference (#119769)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
This commit is contained in:
Tian Gao 2024-07-16 12:17:47 -07:00 committed by GitHub
parent 162b41f577
commit e65cb4c6f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 42 additions and 2 deletions

View file

@ -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'))