mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add new PyFrame_GetLasti C-API function (GH-32413)
This commit is contained in:
parent
f4b328e2bb
commit
5b4a4b6f09
7 changed files with 45 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue