diff --git a/holoviews/operation/datashader.py b/holoviews/operation/datashader.py index 4b561edd95..c5fe4706bf 100644 --- a/holoviews/operation/datashader.py +++ b/holoviews/operation/datashader.py @@ -27,7 +27,7 @@ CompositeOverlay, Dataset, Overlay, OrderedDict, Store) from ..core.data import PandasInterface, XArrayInterface, DaskInterface, cuDFInterface from ..core.util import ( - Iterable, LooseVersion, basestring cast_array_to_int64, cftime_types, cftime_to_timestamp, + Iterable, LooseVersion, basestring, cast_array_to_int64, cftime_types, cftime_to_timestamp, datetime_types, dt_to_int, isfinite, get_param_values, max_range, config ) from ..element import (Image, Path, Curve, RGB, Graph, TriMesh, diff --git a/holoviews/tests/operation/testdatashader.py b/holoviews/tests/operation/testdatashader.py index 913482089e..ad1878aca0 100644 --- a/holoviews/tests/operation/testdatashader.py +++ b/holoviews/tests/operation/testdatashader.py @@ -724,7 +724,7 @@ def test_uint_dtype(self): def test_uint64_dtype(self): df = pd.DataFrame(np.arange(2, dtype=np.uint64), columns=["A"]) curve = Curve(df) - with self.assertRaisesRegex(TypeError, match="Dtype of uint64 for column A is not supported"): + with self.assertRaisesRegex(TypeError, "Dtype of uint64 for column A is not supported"): rasterize(curve, dynamic=False, height=10, width=10)