]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:49:14 +0000 (15:49 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Feb 2025 14:49:14 +0000 (14:49 +0000)
commit7935c0fd5f7f21ef3483c033fb861c29241c0719
tree94b6f7bb667efae93c5a7b0afdddb340db49d3c2
parent4cf3e80eeeb4763bae4ab5fb1b91c146c3da0876
[3.13] gh-129350: Make tests for glob with trailing slash more strict (GH-129376) (GH-129651)

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