]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-106747: Improve `Path.glob()` expectations in pathlib tests (#112365)
authorBarney Gale <barney.gale@gmail.com>
Sun, 3 Dec 2023 20:35:10 +0000 (20:35 +0000)
committerGitHub <noreply@github.com>
Sun, 3 Dec 2023 20:35:10 +0000 (20:35 +0000)
commit09505c5c26d6a4c81b54786eb4196379e9cb223c
tree43c95b625c5ed18332719f03b1c6c04e0e6cffe9
parent489aeac3a2d3b347ff033334688e2f44eec7944a
GH-106747: Improve `Path.glob()` expectations in pathlib tests (#112365)

Add trailing slashes to expected `Path.glob()` results wherever a pattern
has a trailing slash. This matches what `glob.glob()` produces.

Due to another bug (GH-65238) pathlib strips all trailing slashes, so this
change is academic for now.
Lib/test/test_pathlib.py