diff --git a/swift/codegen/test/utils.py b/swift/codegen/test/utils.py index 2678190c9f8..3911206bfa5 100644 --- a/swift/codegen/test/utils.py +++ b/swift/codegen/test/utils.py @@ -39,9 +39,8 @@ def opts(): @pytest.fixture(autouse=True) def override_paths(tmp_path): - with (mock.patch("swift.codegen.lib.paths.swift_dir", tmp_path), - mock.patch("swift.codegen.lib.paths.exe_file", tmp_path / "exe"), - ): + with mock.patch("swift.codegen.lib.paths.swift_dir", tmp_path), \ + mock.patch("swift.codegen.lib.paths.exe_file", tmp_path / "exe"): yield