Skip to content

Commit

Permalink
maybe it's still v2
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Feb 18, 2025
1 parent b81e8f7 commit d453213
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fsspec/implementations/tests/test_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,10 +843,19 @@ def test_append_parquet(lazy_refs, m):
assert lazy2["data/1"] == b"Adata"


def skip_zarr_2():
import zarr
from packaging.version import parse

if parse(zarr.__version__) < parse("3.0"):
pytest.skip("Zarr 3 required")


@pytest.mark.parametrize("engine", ["fastparquet", "pyarrow"])
def test_deep_parq(m, engine):
pytest.importorskip("kerchunk")
zarr = pytest.importorskip("zarr")
skip_zarr_2()

lz = fsspec.implementations.reference.LazyReferenceMapper.create(
"memory://out.parq",
Expand Down Expand Up @@ -896,6 +905,7 @@ def test_deep_parq(m, engine):

def test_parquet_no_data(m):
zarr = pytest.importorskip("zarr")
skip_zarr_2()
fsspec.implementations.reference.LazyReferenceMapper.create(
"memory://out.parq", fs=m
)
Expand Down Expand Up @@ -924,6 +934,7 @@ def test_parquet_no_data(m):

def test_parquet_no_references(m):
zarr = pytest.importorskip("zarr")
skip_zarr_2()
lz = fsspec.implementations.reference.LazyReferenceMapper.create(
"memory://out.parq", fs=m
)
Expand Down

0 comments on commit d453213

Please sign in to comment.