def discard_failing_expectations(self):
    res = self.validate(only_return_failures=True).results
    if any(res):
        for item in res:
            self.remove_expectation(expectation_configuration=item.expectation_config, match_type='runtime')
        warnings.warn(("Removed %s expectations that were 'False'" % len(res)))
def discard_failing_expectations(self):
    res = self.validate(only_return_failures=True).results
    if any(res):
        for item in res:
            self.remove_expectation(expectation_configuration=item.expectation_config, match_type='runtime')
        warnings.warn(("Removed %s expectations that were 'False'" % len(res)))