def addCondition(self, *fns, **kwargs):
        msg = kwargs.get("message") or "failed user-defined condition"
        for fn in fns:
            def pa(s,l,t):
                if not bool(_trim_arity(fn)(s,l,t)):
                    raise ParseException(s,l,msg)
                return t
            self.parseAction.append(pa)
        self.callDuringTry = self.callDuringTry or kwargs.get("callDuringTry", False)
        return self
C{addError} wraps its test with the provided adapter.
dataset/ETHPy150Open pypa/pip/pip/_vendor/pyparsing.py/ParserElement.addCondition--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/trial/test/test_reporter.py/AdaptedReporterTests.test_addError