From 3803deca0fa0d0c2d66872fbd0e277f6f7f35219 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Tue, 27 Sep 2022 10:07:18 +0200 Subject: [PATCH] 2.13.2: another fix for the conda-forge tests See description in https://github.com/zarr-developers/zarr-python/pull/1143 Testing locally, however, does not suffice. In this case, the relative path in the test worked for me, but doesn't work on conda-forge. The only reliable way to be sure is to run `./build-locally.py` in the zarr-feedstock **against pre-tagged code**. --- docs/release.rst | 9 +++++++++ zarr/tests/test_storage.py | 7 ++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/release.rst b/docs/release.rst index 8488aa01ed..2d5c3305cc 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -14,6 +14,15 @@ Release notes # .. warning:: # Pre-release! Use :command:`pip install --pre zarr` to evaluate this release. +.. _release_2.13.2: + +2.13.2 +------ + +* Fix test failure on conda-forge builds (again). + By :user:`Josh Moore `; see + `zarr-feedstock#65 `_. + .. _release_2.13.1: 2.13.1 diff --git a/zarr/tests/test_storage.py b/zarr/tests/test_storage.py index d61216927c..39d4b5988d 100644 --- a/zarr/tests/test_storage.py +++ b/zarr/tests/test_storage.py @@ -2563,11 +2563,12 @@ def test_normalize_store_arg(tmpdir): def test_meta_prefix_6853(): - meta = pathlib.Path(zarr.__file__).resolve().parent.parent / "fixture" / "meta" + fixture = pathlib.Path(zarr.__file__).resolve().parent.parent / "fixture" + meta = fixture / "meta" if not meta.exists(): # pragma: no cover s = DirectoryStore(str(meta), dimension_separator=".") a = zarr.open(store=s, mode="w", shape=(2, 2), dtype="