Skip to content

Commit 755d0cb

Browse files
kdeldyckeclaude
andcommitted
Fix Windows path assertion in test_gh_executable_prefers_the_pinned_registry_binary
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d991a20 commit 755d0cb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/test_gh.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,11 +638,12 @@ def test_parse_create_output_rejects_unparsable_output(output, kind):
638638

639639
def test_gh_executable_prefers_the_pinned_registry_binary():
640640
"""The pinned, checksum-verified `gh` wins over whatever `$PATH` holds."""
641+
pinned_path = Path("/cache/gh")
641642
with patch(
642-
"repomatic.tool_runner.ensure_binary", return_value=Path("/cache/gh")
643+
"repomatic.tool_runner.ensure_binary", return_value=pinned_path
643644
) as ensure:
644645
gh_executable.cache_clear()
645-
assert gh_executable() == "/cache/gh"
646+
assert gh_executable() == str(pinned_path)
646647
assert ensure.call_args.args == ("gh",)
647648
gh_executable.cache_clear()
648649

0 commit comments

Comments
 (0)