Skip to content

Commit 814017d

Browse files
authored
2.13.1: generate fixture/meta in conda tests (#1143)
* 2.13.1: generate fixture/meta in conda tests Following the pattern from #824, this generates the fixture test if it does not exist so that tests will pass on conda-forge. see: conda-forge/zarr-feedstock#65 * Fix rst link * Fix rst link again * Add pragma: no cover
1 parent bc13b7f commit 814017d

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

docs/release.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,24 @@ Release notes
1010

1111
Unreleased
1212
----------
13+
..
14+
# .. warning::
15+
# Pre-release! Use :command:`pip install --pre zarr` to evaluate this release.
16+
17+
.. _release_2.13.1:
18+
19+
2.13.1
20+
------
21+
22+
* Fix test failure on conda-forge builds.
23+
By :user:`Josh Moore <joshmoore>`; see
24+
`zarr-feedstock#65 <https://github.com/conda-forge/zarr-feedstock/pull/65>`_.
1325

1426
.. _release_2.13.0:
1527

1628
2.13.0
1729
------
1830

19-
..
20-
# .. warning::
21-
# Pre-release! Use :command:`pip install --pre zarr` to evaluate this release.
22-
2331
Major changes
2432
~~~~~~~~~~~~~
2533

fixture/meta/.zarray

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
2
2121
],
2222
"zarr_format": 2
23-
}
23+
}

zarr/tests/test_storage.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,5 +2563,11 @@ 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"
2567+
if not meta.exists(): # pragma: no cover
2568+
s = DirectoryStore(str(meta), dimension_separator=".")
2569+
a = zarr.open(store=s, mode="w", shape=(2, 2), dtype="<i8")
2570+
a[:] = [[1, 2], [3, 4]]
2571+
25662572
fixture = group(store=DirectoryStore('fixture'))
25672573
assert list(fixture.arrays())

0 commit comments

Comments
 (0)