From c1ec2aa65b33306d3ae437bf39771416d115861f Mon Sep 17 00:00:00 2001 From: Francois Chollet Date: Fri, 3 Nov 2023 13:47:48 -0700 Subject: [PATCH] Fix CI --- keras/utils/audio_dataset_utils_test.py | 2 +- keras/utils/image_dataset_utils_test.py | 2 +- keras/utils/text_dataset_utils_test.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/keras/utils/audio_dataset_utils_test.py b/keras/utils/audio_dataset_utils_test.py index 5b5bc55e1cd..52201dc8a29 100644 --- a/keras/utils/audio_dataset_utils_test.py +++ b/keras/utils/audio_dataset_utils_test.py @@ -386,7 +386,7 @@ def test_audio_dataset_from_directory_errors(self): ValueError, "`class_names` passed did not match" ): _ = audio_dataset_utils.audio_dataset_from_directory( - directory, class_names=["class_0", "class_2"] + directory, class_names=["class_0", "wrong_class"] ) with self.assertRaisesRegex(ValueError, "there must be exactly 2"): diff --git a/keras/utils/image_dataset_utils_test.py b/keras/utils/image_dataset_utils_test.py index f8d8b25b24a..a4a8838d25a 100644 --- a/keras/utils/image_dataset_utils_test.py +++ b/keras/utils/image_dataset_utils_test.py @@ -370,7 +370,7 @@ def test_image_dataset_from_directory_errors(self): ValueError, "`class_names` passed did not match" ): _ = image_dataset_utils.image_dataset_from_directory( - directory, class_names=["class_0", "class_2"] + directory, class_names=["class_0", "wrong_class"] ) with self.assertRaisesRegex(ValueError, "there must be exactly 2"): diff --git a/keras/utils/text_dataset_utils_test.py b/keras/utils/text_dataset_utils_test.py index 224b659de8e..6719b0cfe92 100644 --- a/keras/utils/text_dataset_utils_test.py +++ b/keras/utils/text_dataset_utils_test.py @@ -253,7 +253,7 @@ def test_text_dataset_from_directory_errors(self): ValueError, "`class_names` passed did not match" ): _ = text_dataset_utils.text_dataset_from_directory( - directory, class_names=["class_0", "class_2"] + directory, class_names=["class_0", "wrong_class"] ) with self.assertRaisesRegex(ValueError, "there must be exactly 2"):