cpython/Lib/test/test_pathlib
Barney Gale 6313cdde58
GH-79634: Accept path-like objects as pathlib glob patterns. (#114017)
Allow `os.PathLike` objects to be passed as patterns to `pathlib.Path.glob()` and `rglob()`. (It's already possible to use them in `PurePath.match()`)

While we're in the area:

- Allow empty glob patterns in `PathBase` (but not `Path`)
- Speed up globbing in `PathBase` by generating paths with trailing slashes only as a final step, rather than for every intermediate directory.
- Simplify and speed up handling of rare patterns involving both `**` and `..` segments.
2024-01-20 02:10:25 +00:00
..
__init__.py
test_pathlib.py GH-79634: Accept path-like objects as pathlib glob patterns. (#114017) 2024-01-20 02:10:25 +00:00
test_pathlib_abc.py GH-79634: Accept path-like objects as pathlib glob patterns. (#114017) 2024-01-20 02:10:25 +00:00