34
34
Blosc (cname = 'zlib' , clevel = 1 , shuffle = 0 ),
35
35
Blosc (cname = 'zstd' , clevel = 1 , shuffle = 1 ),
36
36
Blosc (cname = 'blosclz' , clevel = 1 , shuffle = 2 ),
37
+ None , # was snappy
37
38
Blosc (shuffle = Blosc .SHUFFLE , blocksize = 0 ),
38
39
Blosc (shuffle = Blosc .SHUFFLE , blocksize = 2 ** 8 ),
39
40
Blosc (cname = 'lz4' , clevel = 1 , shuffle = Blosc .NOSHUFFLE , blocksize = 2 ** 8 ),
@@ -68,6 +69,7 @@ def use_threads(request):
68
69
@pytest .mark .parametrize ('array' , arrays )
69
70
@pytest .mark .parametrize ('codec' , codecs )
70
71
def test_encode_decode (array , codec ):
72
+ if codec is None : continue
71
73
check_encode_decode (array , codec )
72
74
73
75
@@ -76,6 +78,7 @@ def test_encode_decode(array, codec):
76
78
else pytest .param (x , marks = [pytest .mark .xfail ])
77
79
for x in arrays ])
78
80
def test_partial_decode (codec , array ):
81
+ if codec is None : continue
79
82
check_encode_decode_partial (array , codec )
80
83
81
84
@@ -202,6 +205,7 @@ def test_config_blocksize():
202
205
203
206
204
207
def test_backwards_compatibility ():
208
+ if codec is None : continue
205
209
check_backwards_compatibility (Blosc .codec_id , arrays , codecs )
206
210
207
211
@@ -255,6 +259,7 @@ def test_err_encode_object_buffer():
255
259
256
260
def test_decompression_error_handling ():
257
261
for codec in codecs :
262
+ if codec is None : continue
258
263
with pytest .raises (RuntimeError ):
259
264
codec .decode (bytearray ())
260
265
with pytest .raises (RuntimeError ):
@@ -263,5 +268,6 @@ def test_decompression_error_handling():
263
268
264
269
def test_max_buffer_size ():
265
270
for codec in codecs :
271
+ if codec is None : continue
266
272
assert codec .max_buffer_size == 2 ** 31 - 1
267
273
check_max_buffer_size (codec )
0 commit comments