mirror of
https://github.com/python/cpython.git
synced 2026-02-06 09:50:43 +00:00
Fix test
Signed-off-by: Manjusaka <me@manjusaka.me>
This commit is contained in:
parent
6f9b72db2b
commit
eff160a69b
1 changed files with 2 additions and 0 deletions
|
|
@ -214,6 +214,8 @@ def __hash__(self):
|
|||
hash_data = [self._drv + self._root] + self._tail
|
||||
elif self._tail and self.parser.splitdrive(self._tail[0])[0]:
|
||||
hash_data = ['.'] + self._tail
|
||||
if self.parser is not posixpath:
|
||||
hash_data = [part.lower() for part in hash_data]
|
||||
self._hash = hash(tuple(hash_data))
|
||||
return self._hash
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue