We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f641534 commit bbb9879Copy full SHA for bbb9879
tests/test_metadata/test_v3.py
@@ -326,7 +326,15 @@ async def test_special_float_fill_values(fill_value: str) -> None:
326
assert d["fill_value"] == "-Infinity"
327
328
329
-def test_parse_codecs_unknown_codec_raises() -> None:
+def test_parse_codecs_unknown_codec_raises(monkeypatch: pytest.MonkeyPatch) -> None:
330
+ from collections import defaultdict
331
+
332
+ import zarr.registry
333
+ from zarr.registry import Registry
334
335
+ # to make sure the codec is always unknown (not sure if that's necessary)
336
+ monkeypatch.setattr(zarr.registry, "__codec_registries", defaultdict(Registry))
337
338
codecs = [{"name": "unknown"}]
339
with pytest.raises(UnknownCodecError):
340
parse_codecs(codecs)
0 commit comments