From f2ba3eb277dcb97115ea6187ad9e68a8064c920b Mon Sep 17 00:00:00 2001
From: Anton Akhmerov <anton.akhmerov@gmail.com>
Date: Wed, 9 Nov 2016 22:52:54 -0500
Subject: [PATCH] use nonrandom coordinates in test_mask_interpolate, closes #1

---
 kwant/tests/test_plotter.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/kwant/tests/test_plotter.py b/kwant/tests/test_plotter.py
index d3074b0c..fb21bea8 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:
-- 
GitLab