Skip to content

Fix resolving Windows drive-relative paths - #1354

Merged
mrbean-bremen merged 2 commits into
pytest-dev:mainfrom
mrbean-bremen:fix-resolve
Oct 14, 2026
Merged

mrbean-bremen merged 2 commits into
pytest-dev:mainfrom
mrbean-bremen:fix-resolve

Conversation

@mrbean-bremen

@mrbean-bremen mrbean-bremen commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Also changed handling of path separators for cross-platform tests to
be more consistent with the simulated OS.

Tasks

  • Unit tests added that reproduce the issue or prove feature is working
  • Fix or feature added
  • Entry to release notes added
  • Pre-commit CI shows no errors
  • Unit tests passing

- adapt os.path tests to also run in real OS
- on changing the os, the separators are now also
  changed, except if set manually before
- recreate fake basepath on os change
@mrbean-bremen
mrbean-bremen merged commit ba9ab53 into pytest-dev:main Oct 14, 2026
204 of 206 checks passed
@mrbean-bremen
mrbean-bremen deleted the fix-resolve branch October 14, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows drive-relative pathlib.Path.resolve(strict=False) resolves incorrectly in pyfakefs 6.2.0

1 participant