diff --git a/kwant/tests/test_plotter.py b/kwant/tests/test_plotter.py index d3074b0cb99e46690ed15f84cb18ba1e5ef51a05..fb21bea86f1099e7b074402ef635835c962565ef 100644 --- a/kwant/tests/test_plotter.py +++ b/kwant/tests/test_plotter.py @@ -158,9 +158,7 @@ def test_map(): def test_mask_interpolate(): # A coordinate array with coordinates of two points almost coinciding. - coords = np.random.rand(10, 2) - coords[5] *= 1e-8 - coords[5] += coords[0] + coords = np.array([[0, 0], [1e-7, 1e-7], [1, 1], [1, 0]]) warnings.simplefilter("ignore") with warnings.catch_warnings(record=True) as w: