[New-bugs-announce] [issue29079] pathlib.resolve() causes infinite loop on Windows

Georg Mischler report at bugs.python.org
Mon Dec 26 15:46:14 EST 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue29079>
_______________________________________


More information about the New-bugs-announce mailing list