Closed kurtmckee closed 1 month ago
A single regression test for https://github.com/pytest-dev/pyfakefs/issues/558 fails as a result of this change
Yes, I agree that this was a questionable change, and as I wrote in the issue, it still does not handle all cases. Emulating another OS with pyfakefs has its shortcomings and will never be perfect, so I think this is a reasonable trade-off.
Found the right path for this (no pun intended). :laughing:
The fix is to push the path separator customization up from the Pure*Path
classes to their *Path
equivalents, and to hard-code the Pure*Path
classes path separators, which are (I think supposed to be) filesystem independent.
The test suite now passes all checks. I've added a changelog entry as well. Please let me know if anything else is needed, or should be accounted for!
Describe the changes
This PR fixes path separators for Windows paths.
Fixes #1006
Tasks