For this one, you could set utils_libvirtd.LIBVIRTD = None should get you the same result exception.