id,node_id,number,state,locked,title,user,body,created_at,updated_at,closed_at,merged_at,merge_commit_sha,assignee,milestone,draft,head,base,author_association,auto_merge,repo,url,merged_by 377121238,MDExOlB1bGxSZXF1ZXN0Mzc3MTIxMjM4,3780,closed,0,Avoid running test_open_mfdataset_list_attr without dask,490531,"Fixes GH-3777. - [x] Closes #3777",2020-02-19T11:41:25Z,2020-02-19T18:24:43Z,2020-02-19T18:24:43Z,2020-02-19T18:24:43Z,90e734a55792f3c19e795df110fc3501c609d191,,,0,7edf728dc6dca340a8a8ff6bf4444a45542e7ca7,52ee5dfe73b51b55cc90f2140f2cd54a2e7946a0,CONTRIBUTOR,,13221727,https://github.com/pydata/xarray/pull/3780, 773024409,PR_kwDOAMm_X84uE2qZ,5936,closed,0,Fix a missing @requires_zarr in tests,490531,"When zarr is not available, this test fails with `NameError: name 'zarr' is not defined`.
Full trace ``` __________________________ test_zarr_storage_options ___________________________ @requires_fsspec def test_zarr_storage_options(): pytest.importorskip(""aiobotocore"") ds = create_test_data() store_target = ""memory://test.zarr"" > ds.to_zarr(store_target, storage_options={""test"": ""zarr_write""}) /build/python-xarray/src/xarray-0.20.0/xarray/tests/test_backends.py:2406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /build/python-xarray/src/xarray-0.20.0/xarray/core/dataset.py:2037: in to_zarr return to_zarr( /build/python-xarray/src/xarray-0.20.0/xarray/backends/api.py:1391: in to_zarr zstore = backends.ZarrStore.open_group( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = store = , mode = 'w-' synchronizer = None, group = None, consolidated = False consolidate_on_close = True, chunk_store = None, storage_options = None append_dim = None, write_region = None, safe_chunks = True, stacklevel = 4 @classmethod def open_group( cls, store, mode=""r"", synchronizer=None, group=None, consolidated=False, consolidate_on_close=False, chunk_store=None, storage_options=None, append_dim=None, write_region=None, safe_chunks=True, stacklevel=2, ): # zarr doesn't support pathlib.Path objects yet. zarr-python#601 if isinstance(store, os.PathLike): store = os.fspath(store) open_kwargs = dict( mode=mode, synchronizer=synchronizer, path=group, ) open_kwargs[""storage_options""] = storage_options if chunk_store: open_kwargs[""chunk_store""] = chunk_store if consolidated is None: consolidated = False if consolidated is None: try: zarr_group = zarr.open_consolidated(store, **open_kwargs) except KeyError: warnings.warn( ""Failed to open Zarr store with consolidated metadata, "" ""falling back to try reading non-consolidated metadata. "" ""This is typically much slower for opening a dataset. "" ""To silence this warning, consider:\n"" ""1. Consolidating metadata in this existing store with "" ""zarr.consolidate_metadata().\n"" ""2. Explicitly setting consolidated=False, to avoid trying "" ""to read consolidate metadata, or\n"" ""3. Explicitly setting consolidated=True, to raise an "" ""error in this case instead of falling back to try "" ""reading non-consolidated metadata."", RuntimeWarning, stacklevel=stacklevel, ) zarr_group = zarr.open_group(store, **open_kwargs) elif consolidated: # TODO: an option to pass the metadata_key keyword zarr_group = zarr.open_consolidated(store, **open_kwargs) else: > zarr_group = zarr.open_group(store, **open_kwargs) E NameError: name 'zarr' is not defined /build/python-xarray/src/xarray-0.20.0/xarray/backends/zarr.py:386: NameError ```
",2021-11-04T04:49:39Z,2021-11-04T10:12:58Z,2021-11-04T10:12:46Z,2021-11-04T10:12:46Z,d2edee5df1eaad650c309daa260a7cea58258cce,,,0,0432d70bb5c9b998bda29406c255cb33fe0aeea5,3e05d6ed215a6e71d9bec5d9e25302f7295437c8,CONTRIBUTOR,,13221727,https://github.com/pydata/xarray/pull/5936,