From c4dc6e424fc6c0934c56d129dbd5b870b667ed12 Mon Sep 17 00:00:00 2001 From: Deepyaman Datta Date: Wed, 4 Oct 2023 10:26:39 -0500 Subject: [PATCH] test(datasets): skip `tensorflow` tests on Windows (#363) Signed-off-by: Deepyaman Datta --- .../tests/tensorflow/test_tensorflow_model_dataset.py | 7 +++++++ 1 file changed, 7 insertions(+) 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.