#NEWLINE# def test_gen5( self ) : #NEWLINE# #INDENT# with self . assertTypingError ( ) as cm : #NEWLINE# #INDENT# cr = compile_isolated ( gen5 , ( ) ) #NEWLINE# #UNINDENT# self . assertIn ( 'Cannot type generator: it does not yield any value' , str ( cr . exception ) )