You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: simplify Windows drive-letter test to fix coverage
The previous tests mocked Path.resolve with a conditional that fell through
to the original implementation — but with the fix in place, only the full
path ever hits resolve(), so the fallthrough was dead code and missed
coverage (lines 129, 146).
Replace with a single parametrized test that records what resolve() was
called with. Before the fix, a bare 'C:\path\server.py' would rsplit on
the drive colon and call resolve(Path('C')); now it calls resolve on the
full path. The recorder asserts that directly — no dead branches.
Also covers the has_windows_drive=True + :object-suffix branch that was
previously missed.
0 commit comments