cpython/Lib/test/test_pathlib
Barney Gale 1b1f8398d0
GH-106747: Make pathlib ABC globbing more consistent with glob.glob() (#115056)
When expanding `**` wildcards, ensure we add a trailing slash to the
topmost directory path. This matches `glob.glob()` behaviour:

    >>> glob.glob('dirA/**', recursive=True)
    ['dirA/', 'dirA/dirB', 'dirA/dirB/dirC']

This does not affect `pathlib.Path.glob()`, because trailing slashes aren't
supported in pathlib proper.
2024-02-06 02:48:18 +00:00
..
__init__.py
test_pathlib.py pathlib ABCs: drop partial, broken, untested support for bytes paths. (#114777) 2024-01-31 00:59:33 +00:00
test_pathlib_abc.py GH-106747: Make pathlib ABC globbing more consistent with glob.glob() (#115056) 2024-02-06 02:48:18 +00:00