Skip to content

Commit 1935ec1

Browse files
committed
Update du sizes in tests
1 parent 5439661 commit 1935ec1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ dependencies = [
1515
# across numpy 1 and 2 (due to pickle format)
1616
"numpy >= 1.26",
1717
"zarr >= 2.17,< 3",
18+
# Pinning numcodecs due to https://github.com/zarr-developers/zarr-python/issues/2963
19+
"numcodecs[msgpack]!=0.14.0,!=0.14.1,<0.16",
1820
"click",
1921
"tabulate",
2022
"tqdm",

tests/test_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ def test_examples(self, chunk_size, size, start, stop):
237237
# It works in CI on Linux, but it'll probably break at some point.
238238
# It's also necessary to update these numbers each time a new data
239239
# file gets added
240-
("tests/data", 4983044),
241-
("tests/data/vcf", 4970907),
240+
("tests/data", 4995332),
241+
("tests/data/vcf", 4983195),
242242
("tests/data/vcf/sample.vcf.gz", 1089),
243243
],
244244
)

tests/test_vcf_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ def test_split_explode(tmp_path):
11051105
pcvcf = vcf2zarr.IntermediateColumnarFormat(out)
11061106
summary_d = pcvcf.fields["POS"].vcf_field.summary.asdict()
11071107
# The compressed size can vary with different numcodecs versions
1108-
assert summary_d["compressed_size"] == 571 or summary_d["compressed_size"] == 587
1108+
assert summary_d["compressed_size"] in [571, 573, 587]
11091109
del summary_d["compressed_size"]
11101110
assert summary_d == {
11111111
"num_chunks": 3,

0 commit comments

Comments
 (0)