From 61c61ce7dff1d777dc9c8fb5843a3264253d17eb Mon Sep 17 00:00:00 2001 From: Michael Wimmer <wimmer@lorentz.leidenuniv.nl> Date: Thu, 22 Aug 2013 15:12:27 +0200 Subject: [PATCH] skip test_map if matplotlib is not present --- kwant/tests/test_plotter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kwant/tests/test_plotter.py b/kwant/tests/test_plotter.py index be703944..4b97cfbb 100644 --- a/kwant/tests/test_plotter.py +++ b/kwant/tests/test_plotter.py @@ -128,6 +128,8 @@ def test_plot(): def test_map(): + if not plotter.mpl_enabled: + raise nose.SkipTest sys = sys_2d() with tempfile.TemporaryFile('w+b') as output: plotter.map(sys, lambda site: site.tag[0], file=output, -- GitLab