diff --git a/tests/e2e/detectors/test_detectors.py b/tests/e2e/detectors/test_detectors.py index c96dd9999..7205229b4 100644 --- a/tests/e2e/detectors/test_detectors.py +++ b/tests/e2e/detectors/test_detectors.py @@ -1718,10 +1718,8 @@ def _generate_test(test_item: Test, skip_existing=False): 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()) if skip_existing: if os.path.isfile(expected_result_path):