Skip to content

Commit 5a1cd0f

Browse files
committed
Adapt test to new blocksize thresholds
1 parent c8c1632 commit 5a1cd0f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_batch_store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,11 @@ def test_batchstore_respects_explicit_use_dict_and_non_zstd():
328328
assert barray.cparams.use_dict is False
329329

330330

331-
def test_batchstore_guess_max_blocksize_uses_l1_for_low_clevel(monkeypatch):
331+
def test_batchstore_guess_max_blocksize_uses_l2_for_clevel_5(monkeypatch):
332332
monkeypatch.setitem(blosc2.cpu_info, "l1_data_cache_size", 100)
333333
monkeypatch.setitem(blosc2.cpu_info, "l2_cache_size", 1000)
334334
barray = blosc2.BatchStore(cparams={"clevel": 5})
335-
assert barray._guess_blocksize([30, 30, 30, 30]) == 3
335+
assert barray._guess_blocksize([30, 30, 30, 30]) == 4
336336

337337

338338
def test_batchstore_guess_max_blocksize_uses_l2_for_mid_clevel(monkeypatch):

0 commit comments

Comments
 (0)