Skip to content

Commit

Permalink
2.13.2: another fix for the conda-forge tests (#1146)
Browse files Browse the repository at this point in the history
See description in #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**.
  • Loading branch information
joshmoore authored Sep 27, 2022
1 parent 7c9c9ed commit 61af678
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions docs/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <joshmoore>`; see
`zarr-feedstock#65 <https://github.com/conda-forge/zarr-feedstock/pull/65>`_.

.. _release_2.13.1:

2.13.1
Expand Down
7 changes: 4 additions & 3 deletions zarr/tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="<i8")
a[:] = [[1, 2], [3, 4]]

fixture = group(store=DirectoryStore('fixture'))
assert list(fixture.arrays())
fixtures = group(store=DirectoryStore(str(fixture)))
assert list(fixtures.arrays())

0 comments on commit 61af678

Please sign in to comment.