def signal_obj(request): klass, wrap = request.param obj = klass() if wrap: debug.log_signals(obj) return obj