Add new PyFrame_GetLasti C-API function (GH-32413)

This commit is contained in:
Mark Shannon 2022-04-08 12:18:57 +01:00 committed by GitHub
parent f4b328e2bb
commit 5b4a4b6f09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 45 additions and 4 deletions

View file

@ -1102,6 +1102,7 @@ class Test_FrameAPI(unittest.TestCase):
self.assertEqual(frame.f_locals, _testcapi.frame_getlocals(frame))
self.assertIs(frame.f_globals, _testcapi.frame_getglobals(frame))
self.assertIs(frame.f_builtins, _testcapi.frame_getbuiltins(frame))
self.assertEqual(frame.f_lasti, _testcapi.frame_getlasti(frame))
def test_frame_get_generator(self):
gen = self.getgenframe()