#NEWLINE# def _expect_failure( self , config , ex , name = 'block' ) : #NEWLINE# #INDENT# for fail in self . fails : #NEWLINE# #INDENT# if fail ( config ) : #NEWLINE# #INDENT# print ( ( '%s failed as expected (%s): %s ' % ( name , fail . _as_string ( config ) , str ( ex ) ) ) ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# util . raise_from_cause ( fail )