From 7e4147d246a8fe2435996bfb4ee163fb8190e1e8 Mon Sep 17 00:00:00 2001 From: Joseph Weston <joseph@weston.cloud> Date: Wed, 10 Oct 2018 13:15:46 +0200 Subject: [PATCH] =?UTF-8?q?fix=20typo=20'plotter=20=E2=86=92=20=5Fplotter'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'mpl_available' flag was relegated to '_plotter' in the development version, but the check in the test was still referring to 'plotter'. The change 'plotter → _plotter' was made on the development version, so this fix does not need to be backported to the stable branch. --- kwant/tests/test_plotter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kwant/tests/test_plotter.py b/kwant/tests/test_plotter.py index 862dd829..31227beb 100644 --- a/kwant/tests/test_plotter.py +++ b/kwant/tests/test_plotter.py @@ -39,7 +39,7 @@ from kwant import plotter from kwant import _plotter # for mpl_available -@pytest.mark.skipif(not plotter.mpl_available, reason="Matplotlib unavailable.") +@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