def METHOD_NAME(self):
    """A UserError that is in the DEFAULT_IGNORED_EXCEPTIONS is not captured
    (there is no exc_info in the ValidationError exception)."""
    client = initialize_sentry(config)._client
    client.transport = InMemoryTransport({"dsn": self.dsn})
    level, msg = logging.WARNING, "Test exception"
    # Odoo handles UserErrors by logging the exception
    _logger.warning(exceptions.ValidationError(msg))
    level = "warning"
    self.assertEventNotCaptured(client, level, msg)