3434 Blosc (cname = 'zlib' , clevel = 1 , shuffle = 0 ),
3535 Blosc (cname = 'zstd' , clevel = 1 , shuffle = 1 ),
3636 Blosc (cname = 'blosclz' , clevel = 1 , shuffle = 2 ),
37+ None , # was snappy
3738 Blosc (shuffle = Blosc .SHUFFLE , blocksize = 0 ),
3839 Blosc (shuffle = Blosc .SHUFFLE , blocksize = 2 ** 8 ),
3940 Blosc (cname = 'lz4' , clevel = 1 , shuffle = Blosc .NOSHUFFLE , blocksize = 2 ** 8 ),
@@ -68,6 +69,7 @@ def use_threads(request):
6869@pytest .mark .parametrize ('array' , arrays )
6970@pytest .mark .parametrize ('codec' , codecs )
7071def test_encode_decode (array , codec ):
72+ if codec is None : continue
7173 check_encode_decode (array , codec )
7274
7375
@@ -76,6 +78,7 @@ def test_encode_decode(array, codec):
7678 else pytest .param (x , marks = [pytest .mark .xfail ])
7779 for x in arrays ])
7880def test_partial_decode (codec , array ):
81+ if codec is None : continue
7982 check_encode_decode_partial (array , codec )
8083
8184
@@ -202,6 +205,7 @@ def test_config_blocksize():
202205
203206
204207def test_backwards_compatibility ():
208+ if codec is None : continue
205209 check_backwards_compatibility (Blosc .codec_id , arrays , codecs )
206210
207211
@@ -255,6 +259,7 @@ def test_err_encode_object_buffer():
255259
256260def test_decompression_error_handling ():
257261 for codec in codecs :
262+ if codec is None : continue
258263 with pytest .raises (RuntimeError ):
259264 codec .decode (bytearray ())
260265 with pytest .raises (RuntimeError ):
@@ -263,5 +268,6 @@ def test_decompression_error_handling():
263268
264269def test_max_buffer_size ():
265270 for codec in codecs :
271+ if codec is None : continue
266272 assert codec .max_buffer_size == 2 ** 31 - 1
267273 check_max_buffer_size (codec )
0 commit comments