Repository navigation
Commit 41342f0
Add test that
This test creates a real `.lock` file in the repository's `.git/`
directory and asserts that `_rm_lock_files()` removes it. As of this
commit (i.e. without the follow-up fix), the test fails: `_rm_lock_files`
has been a silent no-op for several years because of a stale path
expression in `_tc_lock_fpaths` just above it.
The follow-up commit ("Fix stale path in `_tc_lock_fpaths`") corrects
the path; with that fix in place this test passes.
This is added test-first (failing-then-passing) so the regression
guard is recorded as a real demonstration of the bug, the way
`test/test_fixture_health.py` was added test-first earlier this year
for the Cygwin safe.directory issue.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>_rm_lock_files actually removes lock files1 parent e196f44 commit 41342f0
1 file changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
65 | 100 | | |
66 | 101 | | |
67 | 102 | | |
| |||
0 commit comments