|
24 | 24 | assert_frame_equal,
|
25 | 25 | assert_identical,
|
26 | 26 | raises_regex,
|
27 |
| - requires_pint, |
| 27 | + requires_pint_0_15, |
28 | 28 | requires_scipy_or_netCDF4,
|
29 | 29 | )
|
30 | 30 | from .test_backends import create_tmp_file
|
@@ -293,14 +293,10 @@ def test_persist(self):
|
293 | 293 | self.assertLazyAndAllClose(u + 1, v)
|
294 | 294 | self.assertLazyAndAllClose(u + 1, v2)
|
295 | 295 |
|
296 |
| - @requires_pint |
| 296 | + @requires_pint_0_15(reason="Need __dask_tokenize__") |
297 | 297 | def test_tokenize_duck_dask_array(self):
|
298 | 298 | import pint
|
299 | 299 |
|
300 |
| - pytest.mark.skipif( |
301 |
| - pint.__version__ < "0.15", |
302 |
| - reason="Dask tokenize is not implemented for Pint < 0.15", |
303 |
| - ) |
304 | 300 | unit_registry = pint.UnitRegistry()
|
305 | 301 |
|
306 | 302 | q = unit_registry.Quantity(self.data, "meter")
|
@@ -736,14 +732,10 @@ def test_from_dask_variable(self):
|
736 | 732 | a = DataArray(self.lazy_array.variable, coords={"x": range(4)}, name="foo")
|
737 | 733 | self.assertLazyAndIdentical(self.lazy_array, a)
|
738 | 734 |
|
739 |
| - @requires_pint |
| 735 | + @requires_pint_0_15(reason="Need __dask_tokenize__") |
740 | 736 | def test_tokenize_duck_dask_array(self):
|
741 | 737 | import pint
|
742 | 738 |
|
743 |
| - pytest.mark.skipif( |
744 |
| - pint.__version__ < "0.15", |
745 |
| - reason="Dask tokenize is not implemented for Pint < 0.15", |
746 |
| - ) |
747 | 739 | unit_registry = pint.UnitRegistry()
|
748 | 740 |
|
749 | 741 | q = unit_registry.Quantity(self.data, unit_registry.meter)
|
|
0 commit comments