From e43afcd0f541d0c4eb27e8507952aca55111a4e8 Mon Sep 17 00:00:00 2001 From: Pekka T Savolainen Date: Tue, 17 Dec 2024 20:03:47 +0200 Subject: [PATCH] Fix a test? Something has recently broken on windows Python 3.12 regarding this test --- tests/tool/test_Tool.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/tool/test_Tool.py b/tests/tool/test_Tool.py index eb39212b..edc6bc19 100644 --- a/tests/tool/test_Tool.py +++ b/tests/tool/test_Tool.py @@ -198,9 +198,7 @@ def test_find_input_files(self): expected = {"input1.csv": [expected_urls["url1"], expected_urls["url3"]], "input2.csv": None} self.assertEqual(2, len(result)) self.assertEqual(expected["input2.csv"], result["input2.csv"]) - print(f"expected_urls:{expected_urls}") - print(f"result:{result}") - self.assertTrue(expected_urls["url3"] in result["input1.csv"] or expected_urls["url1"] in result["input1.csv"]) + self.assertTrue(os.path.abspath(expected_urls["url3"]) in os.path.abspath(result["input1.csv"][0]) or os.path.abspath(expected_urls["url1"]) in os.path.abspath(result["input1.csv"][0])) resources.pop(0) resources.append( ProjectItemResource("Exporter", "file", "fifth", url="file:///" + url5, metadata={}, filterable=False)