<s> import sys <EOL> def _next ( it ) : <EOL> if sys . version_info [ <NUM_LIT:0> ] >= <NUM_LIT:3> : <EOL> return next ( it ) <EOL> else : <EOL> return it . next ( ) <EOL> def test_generator_frame_cycle ( ) : <EOL> """<STR_LIT>""" <EOL> testit = [ ] <EOL> def whoo ( ) : <EOL> try : <EOL> yield <EOL> except : <EOL> yield <EOL> finally : <EOL> testit . append ( "<STR_LIT>" ) <EOL> g = whoo ( ) <EOL> _next ( g ) <EOL> eval ( '<STR_LIT>' , { '<STR_LIT:g>' : g } ) <EOL> del g <EOL> return tuple ( testit ) </s>
