cpython/Lib/test/test_pathlib
Barney Gale 5c89adf385
GH-127456: pathlib ABCs: add protocol for path parser (#127494)
Change the default value of `PurePathBase.parser` from `ParserBase()` to
`posixpath`. As a result, user subclasses of `PurePathBase` and `PathBase`
use POSIX path syntax by default, which is very often desirable.

Move `pathlib._abc.ParserBase` to `pathlib._types.Parser`, and convert it
to a runtime-checkable protocol.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-12-09 18:31:22 +00:00
..
__init__.py
test_pathlib.py GH-127381: pathlib ABCs: remove `PathBase.unlink()` and `rmdir()` (#127736) 2024-12-08 18:45:09 +00:00
test_pathlib_abc.py GH-127456: pathlib ABCs: add protocol for path parser (#127494) 2024-12-09 18:31:22 +00:00