[New-bugs-announce] [issue38453] ntpath.realpath() should make absolute path earlier

Steve Dower report at bugs.python.org
Fri Oct 11 18:27:20 EDT 2019


New submission from Steve Dower <steve.dower at python.org>:

Because the abspath() call is deferred until the end of the resolution process, if the current working directory is not already a real path, it will not be fully resolved.

By passing it through abspath() at the start of the function, we ensure that the correct path is resolved.

This will help resolve some inconsistencies in the test suite when tests are launched with a short filename (FILENA~1) in the working directory (though some other fixes are probably needed to help here).

----------
components: Windows
messages: 354509
nosy: eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: ntpath.realpath() should make absolute path earlier
type: behavior
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38453>
_______________________________________


More information about the New-bugs-announce mailing list