mirror of https://github.com/python/cpython
Issue #18666: improve test_frame a bit. Patch by Vajrasky Kok.
This commit is contained in:
parent
47cd96eaec
commit
dbfc129cc8
|
@ -90,6 +90,9 @@ class ClearTest(unittest.TestCase):
|
|||
gen = g()
|
||||
f = next(gen)
|
||||
self.assertFalse(endly)
|
||||
# Clearing the frame closes the generator
|
||||
f.clear()
|
||||
self.assertTrue(endly)
|
||||
|
||||
@support.cpython_only
|
||||
def test_clear_refcycles(self):
|
||||
|
|
Loading…
Reference in New Issue