def set_error_serializer(self, serializer):

        if len(inspect.getargspec(serializer).args) == 2:
            serializer = helpers.wrap_old_error_serializer(serializer)
        self._serialize_error = serializer

    # ------------------------------------------------------------------------
    # Helpers that require self
    # ------------------------------------------------------------------------
Test whether the test has passed or failed
dataset/ETHPy150Open falconry/falcon/falcon/api.py/API.set_error_serializer--crossover with--dataset/ETHPy150Open livid/v2ex/html5lib/tests/test_tokenizer.py/tokensMatch