def METHOD_NAME(self):
    path = make_polygon([[0, 0, 0], [0, 0, 10]])
    profile_1 = make_polygon(
        [[-1, -1, 0], [1, -1, 0], [1, 1, 0], [-1, 1, 0]], closed=True
    )
    profile_2 = make_polygon(
        [[-1, -1, 10], [1, -1, 10], [1, 1, 10], [-1, 1, 10]], closed=False
    )
    with pytest.raises(FreeCADError):
        sweep = sweep_shape([profile_1, profile_2], path)