Issue #18666: improve test_frame a bit. Patch by Vajrasky Kok.

This commit is contained in:
Antoine Pitrou 2013-08-06 23:05:23 +02:00
parent 47cd96eaec
commit dbfc129cc8
1 changed files with 3 additions and 0 deletions

View File

@ -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):