Files
pytest2/changelog/11895.bugfix.rst
Bruno Oliveira 8d9b95dcdb Fix collection of short paths on Windows (#11936)
Passing a short path in the command line was causing the matchparts check to fail, because ``Path(short_path) != Path(long_path)``.

Using ``os.path.samefile`` as fallback ensures the comparsion works on Windows when comparing short/long paths.

Fix #11895
2024-02-23 07:51:15 -03:00

2 lines
119 B
ReStructuredText

Fix collection on Windows where initial paths contain the short version of a path (for example ``c:\PROGRA~1\tests``).