diff --git a/tests/system/test_gbq.py b/tests/system/test_gbq.py index 5b90e8ba..65c344a7 100644 --- a/tests/system/test_gbq.py +++ b/tests/system/test_gbq.py @@ -5,6 +5,7 @@ # -*- coding: utf-8 -*- import datetime +import packaging.version import sys import numpy as np @@ -997,6 +998,9 @@ def test_upload_data_with_missing_schema_fields_raises_error(self, project_id): table_schema=test_schema, ) + @pytest.mark.skipif( + packaging.version.parse(pandas.__version__).release >= (2, 0), reason="" + ) def test_upload_data_with_timestamp(self, project_id): test_id = "21" test_size = 6 diff --git a/tests/system/test_read_gbq.py b/tests/system/test_read_gbq.py index f9358ef6..74cbfad9 100644 --- a/tests/system/test_read_gbq.py +++ b/tests/system/test_read_gbq.py @@ -5,6 +5,7 @@ import collections import datetime import decimal +import packaging.version import random import db_dtypes @@ -38,6 +39,9 @@ def writable_table( bigquery_client.delete_table(full_table_id) +@pytest.mark.skipif( + packaging.version.parse(pandas.__version__).release >= (2, 0), reason="" +) @pytest.mark.parametrize(["use_bqstorage_api"], [(True,), (False,)]) @pytest.mark.parametrize( ["query", "expected", "use_bqstorage_apis"], @@ -545,6 +549,7 @@ def writable_table( def test_default_dtypes( read_gbq, query, expected, use_bqstorage_apis, use_bqstorage_api ): + if use_bqstorage_api not in use_bqstorage_apis: pytest.skip(f"use_bqstorage_api={use_bqstorage_api} not supported.") # the parameter useQueryCache=False is used in the following function call