From 35a45b1773986513cbe1522a0de0e62104d5f24f Mon Sep 17 00:00:00 2001 From: Andrew <15331990+ahuang11@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:47:48 -0700 Subject: [PATCH] Add version check for test --- hvplot/tests/testoperations.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hvplot/tests/testoperations.py b/hvplot/tests/testoperations.py index f3f303e04..1680c64a1 100644 --- a/hvplot/tests/testoperations.py +++ b/hvplot/tests/testoperations.py @@ -196,6 +196,8 @@ def test_datashade_rescale_discrete_levels_default_True(self): assert actual is expected def test_rasterize_by(self): + if Version(hv.__version__) < Version('1.18.0a1'): + raise SkipTest('hv.ImageStack introduced after 1.18.0a1') expected = 'category' plot = self.df.hvplot(x='x', y='y', by=expected, rasterize=True, dynamic=False) assert isinstance(plot, ImageStack)