Skip to content

Commit f4b6581

Browse files
authored
use tempfile and reload with xr
1 parent 9023b9d commit f4b6581

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

intake_xarray/tests/test_image.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,7 @@ def test_read_images_and_persist():
190190
pytest.importorskip('skimage')
191191
urlpath = os.path.join(here, 'data', 'images', '*')
192192
source = ImageSource(urlpath=urlpath, coerce_shape=(256, 256))
193-
source.export('./exported')
193+
import tempfile
194+
exported = tempfile.mkdtemp()
195+
source.export(exported)
196+
assert xr.open_dataset(exported, engine="zarr")

0 commit comments

Comments
 (0)