From db58b4d5c686f28a08cbf03555d8da002634b864 Mon Sep 17 00:00:00 2001
From: Joseph Weston <joseph@weston.cloud>
Date: Tue, 9 Oct 2018 16:31:59 +0200
Subject: [PATCH] skip plotter test that cannot run when matplotlib is not
 installed

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

diff --git a/kwant/tests/test_plotter.py b/kwant/tests/test_plotter.py
index 2678923d..c933d34b 100644
--- a/kwant/tests/test_plotter.py
+++ b/kwant/tests/test_plotter.py
@@ -38,6 +38,7 @@ except ImportError:
 from kwant import plotter
 
 
+@pytest.mark.skipif(not plotter.mpl_available, reason="Matplotlib unavailable.")
 def test_matplotlib_backend_unset():
     """Simply importing Kwant should not set the matplotlib backend."""
     assert matplotlib_backend_chosen is False
-- 
GitLab