Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be more robust in how regression data are discovered #821

Merged
merged 5 commits into from
Aug 24, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ Release notes
Unreleased
----------

.. _release_2.9.2:

Maintenance
~~~~~~~~~~~

* Correct conda-forge deployment of Zarr by fixing some Zarr tests.
By :user:`Ben Williams <benjaminhwilliams>`; :issue:`821`.


.. _release_2.9.1:

Maintenance
Expand Down
9 changes: 6 additions & 3 deletions zarr/tests/test_dim_separator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import pathlib

import pytest
from numpy.testing import assert_array_equal

Expand Down Expand Up @@ -29,10 +31,11 @@ def dataset(tmpdir, request):
kwargs = {}

if which.startswith("static"):
project_root = pathlib.Path(zarr.__file__).resolve().parent.parent
if which.endswith("nested"):
return "fixture/nested"
return str(project_root / "fixture/nested")
else:
return "fixture/flat"
return str(project_root / "fixture/flat")

if which.startswith("directory"):
store_class = DirectoryStore
Expand Down Expand Up @@ -60,7 +63,7 @@ def verify(array):


def test_open(dataset):
verify(zarr.open(dataset))
verify(zarr.open(dataset, "r"))


@pytest.mark.skipif(have_fsspec is False, reason="needs fsspec")
Expand Down