#NEWLINE# def test_gen5_objmode( self ) : #NEWLINE# #INDENT# cr = compile_isolated ( gen5 , ( ) , flags = forceobj_flags ) #NEWLINE# cgen = cr . entry_point ( ) #NEWLINE# self . assertEqual ( list ( cgen ) , [ ] ) #NEWLINE# with self . assertRaises ( StopIteration ) : #NEWLINE# #INDENT# next ( cr )