Skip to content

Commit

Permalink
test: Try invoking ibis.set_backend only in scopes that use it
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Oct 21, 2024
1 parent 9719e2f commit 5995202
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/vegalite/v5/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from altair.vegalite.v5.api import _Conditional, _Conditions
from altair.vegalite.v5.schema._typing import Map

ibis.set_backend("polars")

PANDAS_VERSION = Version(importlib_version("pandas"))

Expand Down Expand Up @@ -1613,6 +1612,7 @@ def test_polars_with_pandas_nor_pyarrow(monkeypatch: pytest.MonkeyPatch):
sys.platform == "win32", reason="Timezone database is not installed on Windows"
)
def test_ibis_with_date_32():
ibis.set_backend("polars")
df = pl.DataFrame(
{"a": [1, 2, 3], "b": [date(2020, 1, 1), date(2020, 1, 2), date(2020, 1, 3)]}
)
Expand All @@ -1633,6 +1633,7 @@ def test_ibis_with_date_32():
sys.platform == "win32", reason="Timezone database is not installed on Windows"
)
def test_ibis_with_vegafusion(monkeypatch: pytest.MonkeyPatch):
ibis.set_backend("polars")
df = pl.DataFrame(
{
"a": [1, 2, 3],
Expand Down

0 comments on commit 5995202

Please sign in to comment.