From 61f0890650324944da2a5e984427871dce11b1a5 Mon Sep 17 00:00:00 2001 From: alpharush <0xalpharush@protonmail.com> Date: Thu, 23 Mar 2023 17:19:15 -0500 Subject: [PATCH] switch back to str from as_posix() --- tests/e2e/detectors/test_detectors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/detectors/test_detectors.py b/tests/e2e/detectors/test_detectors.py index 285e0ac34..c96dd9999 100644 --- a/tests/e2e/detectors/test_detectors.py +++ b/tests/e2e/detectors/test_detectors.py @@ -1670,8 +1670,8 @@ def test_detector(test_item: Test): test_item.detector.ARGUMENT, test_item.solc_ver, ) - test_file_path = pathlib.Path(test_dir_path, test_item.test_file).as_posix() - expected_result_path = pathlib.Path(test_dir_path, test_item.expected_result).absolute().as_posix() + test_file_path = str(pathlib.Path(test_dir_path, test_item.test_file)) + expected_result_path = str(pathlib.Path(test_dir_path, test_item.expected_result).absolute()) cc = load_from_zip(f"{test_file_path}-{test_item.solc_ver}.zip")[0] @@ -1685,7 +1685,7 @@ def test_detector(test_item: Test): results_as_string = json.dumps(results) for additional_file in test_item.additional_files: - additional_path = pathlib.Path(test_dir_path, additional_file).absolute().as_posix() + additional_path = str(pathlib.Path(test_dir_path, additional_file).absolute()) additional_path = additional_path.replace("\\", "\\\\") results_as_string = results_as_string.replace(additional_path, GENERIC_PATH) test_file_path = test_file_path.replace("\\", "\\\\")