◐ Shell
clean mode source ↗

GH-65238: Add test cases for trailing slash handling in pathlib by barneygale · Pull Request #113248 · python/cpython

@barneygale

Ensure that trailing slashes are ignored whenever pathlib splits a basename
from a dirname. This commit adds test cases for `parent`, `parents`,
`name`, `stem`, `suffix`, `suffixes`, `with_name()`, `with_stem()`,
`with_suffix()`, `relative_to()`, `is_relative_to()`, `expanduser()` and
`absolute()`.

Any solution for pythonGH-65238 should keep these tests passing.