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()
|
gen = g()
|
||||||
f = next(gen)
|
f = next(gen)
|
||||||
self.assertFalse(endly)
|
self.assertFalse(endly)
|
||||||
|
# Clearing the frame closes the generator
|
||||||
|
f.clear()
|
||||||
|
self.assertTrue(endly)
|
||||||
|
|
||||||
@support.cpython_only
|
@support.cpython_only
|
||||||
def test_clear_refcycles(self):
|
def test_clear_refcycles(self):
|
||||||
|
|
Loading…
Reference in New Issue