From bcb10e1712f2e8609ea31ec173cff075587e7354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 11 Aug 2022 17:31:57 +0200 Subject: [PATCH] f --- tests/test_process.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_process.py b/tests/test_process.py index 773a62d2f..2e6850276 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -47,8 +47,8 @@ def check_image(root_folder, image, name, level=0.9): if False: cv2.imwrite(expected_name, image) return - if not os.path.isfile(expected_name): - cv2.imwrite(result_name, image) + if not os.path.exists(expected_name): + cv2.imwrite(expected_name, image) assert not os.path.isfile(expected_name), "Expected image not found: " + expected_name expected = cv2.imread(expected_name) assert expected is not None, "Wrong image: " + expected_name