File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7979
8080 # This is used to test with zfpy, which does not yet support numpy 2.0
8181 - name : Install older numpy and zfpy
82- if : matrix.python-version == '3.11' && matrix.platform != 'macos-14'
82+ if : matrix.python-version == '3.11'
8383 shell : " bash -l {0}"
8484 run : |
8585 conda activate env
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def _expect_name_prefix(codec_name: str) -> str:
5858 raise ValueError (
5959 f"Expected name to start with '{ CODEC_PREFIX } '. Got { codec_name } instead."
6060 ) # pragma: no cover
61- return codec_name [ len (CODEC_PREFIX ) :]
61+ return codec_name . removeprefix (CODEC_PREFIX )
6262
6363
6464def _parse_codec_configuration (data : dict [str , JSON ]) -> dict [str , JSON ]:
@@ -114,7 +114,7 @@ def to_dict(self) -> JSON:
114114 }
115115
116116 def compute_encoded_size (self , input_byte_length : int , chunk_spec : ArraySpec ) -> int :
117- return input_byte_length # pragma: no cover
117+ raise NotImplementedError # pragma: no cover
118118
119119
120120class _NumcodecsBytesBytesCodec (_NumcodecsCodec , BytesBytesCodec ):
You can’t perform that action at this time.
0 commit comments