Skip to content

Commit eff160a

Browse files
committed
Fix test
Signed-off-by: Manjusaka <me@manjusaka.me>
1 parent 6f9b72d commit eff160a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/pathlib/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ def __hash__(self):
214214
hash_data = [self._drv + self._root] + self._tail
215215
elif self._tail and self.parser.splitdrive(self._tail[0])[0]:
216216
hash_data = ['.'] + self._tail
217+
if self.parser is not posixpath:
218+
hash_data = [part.lower() for part in hash_data]
217219
self._hash = hash(tuple(hash_data))
218220
return self._hash
219221

0 commit comments

Comments
 (0)