New submission from Georg Mischler:

When pathlib.resolve() is invoked on Windows(10) with an absolute path 
including a non-existing drive, it gets caught in an infinite loop.

To reproduce:
Select a drive letter that doesn't exist on the system (in my case H:).
Run the following line of code:
    pathlib.Path('h:\\').resolve()

Expected result:
returns the input string unchanged.

Actual result:
pathlib.resolve() ends up in an infinite loop, repeatedly calling 
_getfinalpathname() on the same string.

----------
components: Library (Lib), Windows
messages: 284045
nosy: Georg Mischler, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: pathlib.resolve() causes infinite loop on Windows
type: behavior
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29079>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to