Skip to content

Commit

Permalink
test_plot_empty_pulse now employs non-interactive/displayless matplot…
Browse files Browse the repository at this point in the history
…lib backend to avoid failing on Travis CI.
  • Loading branch information
lumip committed May 30, 2018
1 parent bbcd5f8 commit f1aa5a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/pulses/plotting_tests.py
Expand Up @@ -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)
Expand Down

0 comments on commit f1aa5a2

Please sign in to comment.