Repository navigation
Commit ff147e1
test: handle symlinked Git directories in refresh checks
The macOS Python 3.8 and 3.14 CI jobs each passed 1,348 tests but failed
`test_refresh_with_good_relative_git_path_arg`. Installing the supported
Homebrew Git exposes `/opt/homebrew/opt/git/bin` on `PATH`; changing into
that directory resolves it to the versioned Cellar directory.
Compute the expected relative executable path from the current directory
after changing into it. This preserves the documented `Git.refresh()`
behavior and executable symlinks while removing the test's assumption
that `shutil.which()` and `os.getcwd()` retain the same directory spelling.
Validation: reproduced the failure using a symlinked directory on `PATH`.
All 36 refresh tests pass with both ordinary and symlinked `PATH` values.
Ruff lint, Ruff format, and `git diff --check` pass.1 parent e574871 commit ff147e1
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
| 817 | + | |
| 818 | + | |
817 | 819 | | |
818 | 820 | | |
819 | | - | |
| 821 | + | |
820 | 822 | | |
821 | 823 | | |
822 | 824 | | |
| |||
0 commit comments