def METHOD_NAME(self):
    # Trying to catch an object that does not inherit from BaseException
    # is not allowed.
    class NonBaseException(object):
        pass
    self.catch_fails(NonBaseException)
    self.catch_fails(NonBaseException())