diff --git a/kedro-datasets/tests/tensorflow/test_tensorflow_model_dataset.py b/kedro-datasets/tests/tensorflow/test_tensorflow_model_dataset.py index bedaf8eab..610618a1e 100644 --- a/kedro-datasets/tests/tensorflow/test_tensorflow_model_dataset.py +++ b/kedro-datasets/tests/tensorflow/test_tensorflow_model_dataset.py @@ -1,4 +1,5 @@ import importlib +import sys from pathlib import PurePosixPath import numpy as np @@ -12,6 +13,12 @@ from kedro_datasets import KedroDeprecationWarning from kedro_datasets._io import DatasetError +if sys.platform == "win32": + pytest.skip( + "TensorFlow tests have become inexplicably flaky in Windows CI", + allow_module_level=True, + ) + # In this test module, we wrap tensorflow and TensorFlowModelDataset imports into a module-scoped # fixtures to avoid them being evaluated immediately when a new test process is spawned.