def METHOD_NAME(capsys, spec_object):
    config = {"super_secret_token": "really_a_secret"}
    with pytest_raises(AirbyteTracedException) as ex_info:
        check_config_against_spec_or_exit(config, spec_object)
    exc = ex_info.value
    traceback.print_exception(type(exc), exc, exc.__traceback__)
    out, err = capsys.readouterr()
    assert "really_a_secret" not in out + err
    assert exc.failure_type == FailureType.config_error, "failure_type should be config_error"