cpython/Lib/test/test_pathlib
Barney Gale 707d066193
GH-129835: Yield path with trailing slash from `ReadablePath.glob('')` (#129836)
In the private pathlib ABCs, make `ReadablePath.glob('')` yield a path with
a trailing slash (if it yields anything at all). As a result, `glob()`
works similarly to `joinpath()` when given a non-magic pattern.

In the globbing implementation, we preemptively add trailing slashes to
intermediate paths if there are pattern parts remaining; this removes the
need to check for existing trailing slashes (in the removed `add_slash()`
method) at subsequent steps.
2025-02-08 06:47:09 +00:00
..
__init__.py
test_pathlib.py GH-125413: Add `pathlib.Path.info` attribute (#127730) 2025-02-08 01:16:45 +00:00
test_pathlib_abc.py GH-129835: Yield path with trailing slash from `ReadablePath.glob('')` (#129836) 2025-02-08 06:47:09 +00:00