Skip to content

Commit d91d822

Browse files
committed
test: skip range pyarrow delegation test if pandas lacks ArrowDtype
1 parent 65f78bc commit d91d822

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/google-cloud-bigquery/tests/unit/test_table.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5771,6 +5771,8 @@ def test_to_dataframe_delegated_when_supported_with_range_types(self):
57715771

57725772
db_dtypes = pytest.importorskip("db_dtypes")
57735773
pandas = pytest.importorskip("pandas")
5774+
if not hasattr(pandas, "ArrowDtype"):
5775+
pytest.skip("pandas.ArrowDtype is not available in this environment.")
57745776
pyarrow = pytest.importorskip("pyarrow")
57755777
mock_pandas_gbq = mock.Mock()
57765778
mock_pandas_gbq.pandas.from_row_iterator.return_value = mock.sentinel.dataframe

0 commit comments

Comments
 (0)