diff -r 438cdc97d8ee Lib/test/test_frame.py --- a/Lib/test/test_frame.py Mon Aug 05 23:35:43 2013 +0200 +++ b/Lib/test/test_frame.py Tue Aug 06 12:58:31 2013 +0800 @@ -90,6 +90,9 @@ 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):