From f2892cbd9048bc6f98e7c10e1cc7d4347b3d399b Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Wed, 31 Aug 2016 14:42:24 +0100 Subject: [PATCH] Small fix for plot instantiation tests --- tests/testplotinstantiation.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/testplotinstantiation.py b/tests/testplotinstantiation.py index 96c043d092..f71239e12b 100644 --- a/tests/testplotinstantiation.py +++ b/tests/testplotinstantiation.py @@ -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 @@ -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): """