Skip to content

Commit ec845a7

Browse files
Clarify what checks are for implementation details.
1 parent 7e24bff commit ec845a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_glob.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,16 @@ def test_glob_directory_with_trailing_slash(self):
178178
self.assertEqual(glob.glob(self.norm('ZZZ') + sep), [])
179179
self.assertEqual(glob.glob(self.norm('aaa') + sep),
180180
[self.norm('aaa') + sep])
181+
# Preserving the redundant separators is an implementation detail.
181182
self.assertEqual(glob.glob(self.norm('aaa') + sep*2),
182183
[self.norm('aaa') + sep*2])
183184
# When there is a wildcard pattern which ends with a pathname
184-
# separator, glob() doesn't blow up.
185+
# separator, glob() doesn't blow up and preserves the trailing
186+
# separator.
185187
eq = self.assertSequencesEqual_noorder
186188
eq(glob.glob(self.norm('aa*') + sep),
187189
[self.norm('aaa') + sep, self.norm('aab') + sep])
190+
# Stripping the redundant separators is an implementation detail.
188191
eq(glob.glob(self.norm('aa*') + sep*2),
189192
[self.norm('aaa') + sep, self.norm('aab') + sep])
190193

0 commit comments

Comments
 (0)