Skip to content

Commit 65f78bc

Browse files
committed
test: skip delegation tests if db_dtypes is not installed
1 parent a74b5c0 commit 65f78bc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5721,8 +5721,7 @@ def test_rowiterator_to_geodataframe_delegation(self, to_dataframe):
57215721
def test_to_dataframe_delegated_when_supported_no_range_types(self):
57225722
import sys
57235723

5724-
import db_dtypes
5725-
5724+
db_dtypes = pytest.importorskip("db_dtypes")
57265725
pandas = pytest.importorskip("pandas")
57275726
mock_pandas_gbq = mock.Mock()
57285727
mock_pandas_gbq.pandas.from_row_iterator.return_value = mock.sentinel.dataframe
@@ -5770,8 +5769,7 @@ def test_to_dataframe_delegated_when_supported_no_range_types(self):
57705769
def test_to_dataframe_delegated_when_supported_with_range_types(self):
57715770
import sys
57725771

5773-
import db_dtypes
5774-
5772+
db_dtypes = pytest.importorskip("db_dtypes")
57755773
pandas = pytest.importorskip("pandas")
57765774
pyarrow = pytest.importorskip("pyarrow")
57775775
mock_pandas_gbq = mock.Mock()

0 commit comments

Comments
 (0)