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)