Skip to content

Commit 507b1f6

Browse files
committed
Fix window test
1 parent 4ab6a66 commit 507b1f6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/whats-new.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Internal Changes
6161
- Use Python 3.6 idioms throughout the codebase. (:pull:3419)
6262
By `Maximilian Roos <https://github.com/max-sixty>`_
6363
- Implement :py:func:`__dask_tokenize__` for xarray objects.
64-
By `Deepak Cherian <https://github.com/dcherian>`_
64+
By `Deepak Cherian <https://github.com/dcherian>`_ and `Guido Imperiale <https://github.com/crusaderky>`_.
6565

6666
.. _whats-new.0.14.0:
6767

xarray/tests/test_dask.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import operator
22
import pickle
3+
import sys
34
from contextlib import suppress
45
from distutils.version import LooseVersion
56
from textwrap import dedent
@@ -28,6 +29,8 @@
2829
da = pytest.importorskip("dask.array")
2930
dd = pytest.importorskip("dask.dataframe")
3031

32+
ON_WINDOWS = sys.platform == "win32"
33+
3134

3235
class CountingScheduler:
3336
""" Simple dask scheduler counting the number of computes.
@@ -1186,7 +1189,7 @@ def test_normalize_token_identical(obj, transform):
11861189

11871190

11881191
def test_normalize_token_netcdf_backend(map_ds):
1189-
with create_tmp_file() as tmp_file:
1192+
with create_tmp_file(allow_cleanup_failure=ON_WINDOWS) as tmp_file:
11901193
map_ds.to_netcdf(tmp_file)
11911194
read = xr.open_dataset(tmp_file)
11921195
assert not dask.base.tokenize(map_ds) == dask.base.tokenize(read)

0 commit comments

Comments
 (0)