Skip to content

Commit

Permalink
Small fix for plot instantiation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Aug 31, 2016
1 parent f3e8bd4 commit f2892cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testplotinstantiation.py
Expand Up @@ -13,6 +13,7 @@
from matplotlib import pyplot
pyplot.switch_backend('agg')
from holoviews.plotting.mpl import OverlayPlot
from holoviews.plotting.comms import JupyterPushComms
renderer = Store.renderers['matplotlib']
except:
pyplot = None
Expand All @@ -23,6 +24,11 @@ class TestPlotInstantiation(ComparisonTestCase):
def setUp(self):
if pyplot is None:
raise SkipTest("Matplotlib required to test plot instantiation")
self.default_comm = renderer.comms['default']
renderer.comms['default'] = JupyterPushComms

def teardown(self):
renderer.comms['default'] = self.default_comm

def test_interleaved_overlay(self):
"""
Expand Down

0 comments on commit f2892cb

Please sign in to comment.