From a0980128ff7c5410b7175100583e31ef03279d46 Mon Sep 17 00:00:00 2001 From: Francesco Paolo Severino Date: Sat, 28 Sep 2024 11:21:23 +0200 Subject: [PATCH] Fix tests --- Tests/ZipTests/ZipTests.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Tests/ZipTests/ZipTests.swift b/Tests/ZipTests/ZipTests.swift index eaedc036..013111e0 100644 --- a/Tests/ZipTests/ZipTests.swift +++ b/Tests/ZipTests/ZipTests.swift @@ -11,12 +11,7 @@ import XCTest final class ZipTests: XCTestCase { private func url(forResource resource: String, withExtension ext: String? = nil) -> URL? { - #if swift(>=6.0) - let filePath = URL(fileURLWithPath: #file) - #else - let filePath = URL(fileURLWithPath: #filePath) - #endif - let resourcePath = filePath + let resourcePath = URL(fileURLWithPath: #filePath) .deletingLastPathComponent() .appendingPathComponent("Resources") .appendingPathComponent(resource)