Skip to content

Commit

Permalink
test: Skip pyarrow tests on 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Nov 10, 2024
1 parent fe0ae88 commit 7089f2a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@

import altair as alt # noqa: F401
from altair.datasets import Loader
from tests import skip_requires_pyarrow

if TYPE_CHECKING:
from altair.datasets._readers import _Backend

backends = pytest.mark.parametrize(
"backend", ["polars", "polars[pyarrow]", "pandas", "pandas[pyarrow]", "pyarrow"]
backends = skip_requires_pyarrow(
pytest.mark.parametrize(
"backend", ["polars", "polars[pyarrow]", "pandas", "pandas[pyarrow]", "pyarrow"]
)
)


Expand All @@ -39,7 +42,7 @@ def test_loader_url(backend: _Backend) -> None:
@backends
def test_loader_call(backend: _Backend) -> None:
data = Loader.with_backend(backend)
data.cache_dir = ""
data.cache_dir = "" # type: ignore[assignment]
frame = data("stocks", ".csv")
assert is_into_dataframe(frame)
nw_frame = nw.from_native(frame)
Expand Down

0 comments on commit 7089f2a

Please sign in to comment.