]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-129350: Make tests for glob with trailing slash more strict (GH-129376...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Feb 2025 14:42:14 +0000 (15:42 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Feb 2025 14:42:14 +0000 (14:42 +0000)
commit676ee57bd6f177556a696136d3bae3fb136cfd01
tree46a9addd8abba0c58e5d7db67d54d4518badd792
parent0d51b298061957625190b916d57f4e552bc835e6
[3.12] gh-129350: Make tests for glob with trailing slash more strict (GH-129376) (GH-129652)

Test that the trailing pathname separator is preserved.

Multiple trailing pathname separators are only preserved if the pattern
does not contain metacharacters, otherwise only one trailing pathname
separator is preserved. This is rather an implementation detail.
(cherry picked from commit 8b5c8508c7f5d98b09792e159ef2396c73da68cd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_glob.py