From f1aa5a26a29bc5a6544285e86cbd767ef9793f4b Mon Sep 17 00:00:00 2001 From: Lukas Prediger Date: Wed, 30 May 2018 11:50:59 +0200 Subject: [PATCH] test_plot_empty_pulse now employs non-interactive/displayless matplotlib backend to avoid failing on Travis CI. --- tests/pulses/plotting_tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/pulses/plotting_tests.py b/tests/pulses/plotting_tests.py index a07c6b30d..e338add01 100644 --- a/tests/pulses/plotting_tests.py +++ b/tests/pulses/plotting_tests.py @@ -228,6 +228,9 @@ def integrated_test_with_sequencer_and_pulse_templates(self) -> None: self.assertEqual(expected_voltages, voltages) def test_plot_empty_pulse(self) -> None: + import matplotlib + matplotlib.use('svg') # use non-interactive backend so that test does not fail on travis + pt = DummyPulseTemplate() with warnings.catch_warnings(record=True) as w: plot(pt, dict(), show=False)