mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-100719: Remove redundant gi_code
field from generator object. (GH-100749)
This commit is contained in:
parent
572223f9ce
commit
22b8d77b98
9 changed files with 126 additions and 71 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue