File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments