Commit 2aca177
test: Pass strings to readlink for Windows Python 3.7
rubber stamp, just get this through CI OMG
<!-- agent -->
The dangling-metadata regression passed pathlib.Path objects to
os.readlink() when capturing and checking the symlink target. Windows
Python 3.7 requires a string argument, so all four parameter combinations
failed with TypeError before exercising the clone fix.
Convert the path to str at both calls. The production clone helper already
passes a string and needs no change. Keep the target-preservation
assertions and the absolute/relative and realpath-mode coverage intact.
Validation: reproduced all four TypeErrors on Windows/Python 3.10 with an
in-memory readlink wrapper enforcing the Python 3.7 string requirement.
After the conversions, all four cases passed with the same wrapper and
Windows permission-error suppression disabled. Ruff 0.16.5 lint and
formatting checks and git diff --check passed. Native Python 3.7 was not
available locally.
Assisted-by: GPT 6.0
Co-authored-by: GPT 6.0 <codex@openai.com>1 parent e9e271b commit 2aca177
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| |||
0 commit comments