GH-100719: Remove redundant gi_code field from generator object. (GH-100749)

This commit is contained in:
Mark Shannon 2023-02-23 10:19:01 +00:00 committed by GitHub
parent 572223f9ce
commit 22b8d77b98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 126 additions and 71 deletions

View file

@ -1213,6 +1213,11 @@ class TestPendingCalls(unittest.TestCase):
self.pendingcalls_submit(l, n)
self.pendingcalls_wait(l, n)
def test_gen_get_code(self):
def genf(): yield
gen = genf()
self.assertEqual(_testcapi.gen_get_code(gen), gen.gi_code)
class SubinterpreterTest(unittest.TestCase):