Skip to content

Commit 40c74f1

Browse files
committed
fix: update tests
1 parent 554ac53 commit 40c74f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang_tools/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def uninstall_tool(tool_name: str, version: str, directory: str):
234234
symlink.unlink()
235235

236236

237-
def uninstall_clang_tools(version: str, tools: str, directory: str):
237+
def uninstall_clang_tools(tools: str, version: str, directory: str):
238238
"""Uninstall a clang tool of a given version.
239239
240240
:param version: The version of the clang-tools to remove.

tests/test_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_install_tools(monkeypatch: pytest.MonkeyPatch, tmp_path: Path, version:
6565
# invoking again should return False
6666
assert not install_tool(tool_name, version, str(tmp_path), False)
6767
# uninstall the tool deliberately
68-
uninstall_clang_tools(version, str(tmp_path))
68+
uninstall_clang_tools(tool_name, version, str(tmp_path))
6969
assert f"{tool_name}-{version}{suffix}" not in [
7070
fd.name for fd in tmp_path.iterdir()
7171
]

0 commit comments

Comments
 (0)