diff --git a/tests/interpolate/test_geometry.py b/tests/interpolate/test_geometry.py index 8dd4921107d..4fb2eabbf81 100644 --- a/tests/interpolate/test_geometry.py +++ b/tests/interpolate/test_geometry.py @@ -178,11 +178,13 @@ def test_find_nn_triangles_point(): tri = Delaunay(pts) tri_match = tri.find_simplex([4.5, 4.5]) - nn = find_nn_triangles_point(tri, tri_match, [4.5, 4.5]) + nn = find_nn_triangles_point(tri, tri_match, (4.5, 4.5)) - # Can't rely on simplex indices, so need to check point indices - truth = {(45, 55, 44), (55, 54, 44)} - assert {tuple(verts) for verts in tri.simplices[nn]} == truth + # Can't rely on simplex indices or the order of points that define them, so need to be a bit more involved to check + truth = [{45, 55, 44}, {55, 54, 44}] + found = [set(verts) for verts in tri.simplices[nn]] + for s in truth: + assert s in found def test_find_local_boundary():