Skip to content

Commit 61af678

Browse files
authored
2.13.2: another fix for the conda-forge tests (#1146)
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**.
1 parent 7c9c9ed commit 61af678

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

docs/release.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ Release notes
1414
# .. warning::
1515
# Pre-release! Use :command:`pip install --pre zarr` to evaluate this release.
1616
17+
.. _release_2.13.2:
18+
19+
2.13.2
20+
------
21+
22+
* Fix test failure on conda-forge builds (again).
23+
By :user:`Josh Moore <joshmoore>`; see
24+
`zarr-feedstock#65 <https://github.com/conda-forge/zarr-feedstock/pull/65>`_.
25+
1726
.. _release_2.13.1:
1827

1928
2.13.1

zarr/tests/test_storage.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,11 +2563,12 @@ def test_normalize_store_arg(tmpdir):
25632563

25642564
def test_meta_prefix_6853():
25652565

2566-
meta = pathlib.Path(zarr.__file__).resolve().parent.parent / "fixture" / "meta"
2566+
fixture = pathlib.Path(zarr.__file__).resolve().parent.parent / "fixture"
2567+
meta = fixture / "meta"
25672568
if not meta.exists(): # pragma: no cover
25682569
s = DirectoryStore(str(meta), dimension_separator=".")
25692570
a = zarr.open(store=s, mode="w", shape=(2, 2), dtype="<i8")
25702571
a[:] = [[1, 2], [3, 4]]
25712572

2572-
fixture = group(store=DirectoryStore('fixture'))
2573-
assert list(fixture.arrays())
2573+
fixtures = group(store=DirectoryStore(str(fixture)))
2574+
assert list(fixtures.arrays())

0 commit comments

Comments
 (0)