Skip to content

Commit 7acc2f1

Browse files
authored
chore: fix unit tests for _read_gbq_colab when Polars isn't installed (#1966)
1 parent 25bde9f commit 7acc2f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/pandas/io/test_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@
1414

1515
from unittest import mock
1616

17+
import pytest
18+
1719
import bigframes.dataframe
1820
import bigframes.pandas.io.api as bf_io_api
1921
import bigframes.session
2022

23+
# _read_gbq_colab requires the polars engine.
24+
pytest.importorskip("polars")
25+
2126

2227
@mock.patch(
2328
"bigframes.pandas.io.api._set_default_session_location_if_possible_deferred_query"

0 commit comments

Comments
 (0)