Skip to content

Commit 4fcc482

Browse files
author
Russell Manser
committed
Add comments for requires_pint_0_15
1 parent 1884e26 commit 4fcc482

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

xarray/tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def LooseVersion(vstring):
7878
has_seaborn, requires_seaborn = _importorskip("seaborn")
7979
has_sparse, requires_sparse = _importorskip("sparse")
8080
has_cartopy, requires_cartopy = _importorskip("cartopy")
81+
# Need Pint 0.15 for __dask_tokenize__ tests for Quantity wrapped Dask Arrays
8182
has_pint_0_15, requires_pint_0_15 = _importorskip("pint", minversion="0.15")
8283

8384
# some special cases

xarray/tests/test_dask.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ def test_persist(self):
293293
self.assertLazyAndAllClose(u + 1, v)
294294
self.assertLazyAndAllClose(u + 1, v2)
295295

296+
# Need Pint 0.15 for __dask_tokenize__ implementation
296297
@requires_pint_0_15
297298
def test_tokenize_duck_dask_array(self):
298299
import pint
@@ -732,6 +733,7 @@ def test_from_dask_variable(self):
732733
a = DataArray(self.lazy_array.variable, coords={"x": range(4)}, name="foo")
733734
self.assertLazyAndIdentical(self.lazy_array, a)
734735

736+
# Need Pint 0.15 for __dask_tokenize__ implementation
735737
@requires_pint_0_15
736738
def test_tokenize_duck_dask_array(self):
737739
import pint

0 commit comments

Comments
 (0)