Skip to content

Commit 334a05c

Browse files
committed
(fix): typesize less than 1 test needs to set private member
1 parent 8bf3915 commit 334a05c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numcodecs/tests/test_blosc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def test_typesize_less_than_1():
278278
Blosc(shuffle=Blosc.SHUFFLE, typesize=0)
279279
compressor = Blosc(shuffle=Blosc.SHUFFLE)
280280
# not really something that should be done in practice, but good for testing.
281-
compressor.typesize = 0
281+
compressor._typesize = 0
282282
arr = np.arange(100)
283283
with pytest.raises(ValueError, match=r"Cannot use typesize"):
284284
compressor.encode(arr.tobytes())

0 commit comments

Comments
 (0)