def wassuccessful_patch(result):
 return make_instancemethod(TextTestResult.wasSuccessful, result)

def wassuccessful_patch ( result ) : return make_instancemethod ( TextTestResult . wasSuccessful , result )
create a new wassuccessful method that checks errorclasses for exceptions that were put into other slots than error or failure but that still count as not success .