Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47cd96e commit dbfc129Copy full SHA for dbfc129
1 file changed
Lib/test/test_frame.py
@@ -90,6 +90,9 @@ def g():
90
gen = g()
91
f = next(gen)
92
self.assertFalse(endly)
93
+ # Clearing the frame closes the generator
94
+ f.clear()
95
+ self.assertTrue(endly)
96
97
@support.cpython_only
98
def test_clear_refcycles(self):
0 commit comments