Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion numcodecs/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def check_backwards_compatibility(codec_id, arrays, codecs, precision=None, pref

for j, codec in enumerate(codecs):
if codec is None:
pytest.skip("codec has been removed")
continue

# setup a directory to hold encoded data
codec_dir = os.path.join(fixture_dir, f'codec.{j:02d}')
Expand Down
28 changes: 14 additions & 14 deletions numcodecs/tests/test_blosc.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,20 +245,20 @@ def test_err_encode_object_buffer():
check_err_encode_object_buffer(Blosc())


def test_decompression_error_handling():
for codec in codecs:
_skip_null(codec)
with pytest.raises(RuntimeError):
codec.decode(bytearray())
with pytest.raises(RuntimeError):
codec.decode(bytearray(0))


def test_max_buffer_size():
for codec in codecs:
_skip_null(codec)
assert codec.max_buffer_size == 2**31 - 1
check_max_buffer_size(codec)
@pytest.mark.parametrize('codec', codecs)
def test_decompression_error_handling(codec):
_skip_null(codec)
with pytest.raises(RuntimeError):
codec.decode(bytearray())
with pytest.raises(RuntimeError):
codec.decode(bytearray(0))


@pytest.mark.parametrize('codec', codecs)
def test_max_buffer_size(codec):
_skip_null(codec)
assert codec.max_buffer_size == 2**31 - 1
check_max_buffer_size(codec)


def test_typesize_explicit():
Expand Down
Loading