]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129350: Make tests for glob with trailing slash more strict (GH-129376)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 4 Feb 2025 14:24:22 +0000 (16:24 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Feb 2025 14:24:22 +0000 (16:24 +0200)
commit8b5c8508c7f5d98b09792e159ef2396c73da68cd
treed038dba4eec11ca8deb83b4dc2cbec6b10f02c2c
parent078ab828b9a21ed0e683941bd141d5017b5f62d9
gh-129350: Make tests for glob with trailing slash more strict (GH-129376)

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.
Lib/test/test_glob.py