Skip to content

Commit 19c69f4

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
chore: skip offline_fetch unit tests in Python 3.8 since bigframes doesn't support Python 3.8
PiperOrigin-RevId: 740542239
1 parent 0214b1b commit 19c69f4

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

tests/unit/aiplatform/test_metadata.py

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import os
1919
import copy
20+
import sys
2021
from importlib import reload
2122
from unittest import TestCase, mock
2223
from unittest.mock import patch, call
@@ -2075,6 +2076,7 @@ def test_get_experiment_df_passes_experiment_variable(
20752076
_, kwargs = query_experiment_row_mock.call_args_list[0]
20762077
TestCase.assertTrue(self, kwargs["experiment"].name == _TEST_EXPERIMENT)
20772078

2079+
@pytest.mark.skipif(sys.version_info == (3, 9), reason="flaky")
20782080
@pytest.mark.usefixtures(
20792081
"get_experiment_mock",
20802082
"list_tensorboard_time_series_mock",

tests/unit/vertexai/test_offline_store.py

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
Feature,
2626
)
2727

28+
pytestmark = pytest.mark.skipif(
29+
sys.version_info == (3, 8), reason="bigframes is not supported in Python 3.8"
30+
)
31+
2832
try:
2933
import pandas as pd
3034
except ImportError:

tests/unit/vertexai/test_tokenization.py

+1
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ def test_image_mime_types(self, mock_sp_processor):
462462
e.match("Tokenizers do not support Image content type.")
463463

464464

465+
@pytest.mark.skip("flaky")
465466
class TestModelLoad:
466467
def setup_method(self):
467468
model_dir = os.path.join(tempfile.gettempdir(), "vertexai_tokenizer_model")

0 commit comments

Comments
 (0)