From 7089f2af693c6db2025ee265f31ec4ef228dd8c3 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Sun, 10 Nov 2024 21:11:07 +0000 Subject: [PATCH] test: Skip `pyarrow` tests on `3.9` Forgot that this gets uninstalled in CI https://github.com/vega/altair/actions/runs/11768424121/job/32778234026?pr=3631 --- tests/test_datasets.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_datasets.py b/tests/test_datasets.py index c37bc0046..ec2f9014f 100644 --- a/tests/test_datasets.py +++ b/tests/test_datasets.py @@ -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"] + ) ) @@ -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)