File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -263,13 +263,16 @@ def test_invalid_compression_level(tmp_path):
263
263
264
264
265
265
@pytest .mark .parametrize ("ext" , extensions )
266
- def test_append (ext , tmp_path ):
266
+ @pytest .mark .parametrize ("threads" , (0 , 1 ))
267
+ def test_append (ext , threads , tmp_path ):
268
+ if ext == ".zst" and zstandard is None and threads == 0 :
269
+ pytest .skip ("No zstandard installed" )
267
270
text = b"AB"
268
271
reference = text + text
269
272
path = tmp_path / f"the-file{ ext } "
270
- with xopen (path , "ab" ) as f :
273
+ with xopen (path , "ab" , threads = threads ) as f :
271
274
f .write (text )
272
- with xopen (path , "ab" ) as f :
275
+ with xopen (path , "ab" , threads = threads ) as f :
273
276
f .write (text )
274
277
with xopen (path , "r" ) as f :
275
278
for appended in f :
You can’t perform that action at this time.
0 commit comments