New submission from Steve Dower <steve.do...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue38453>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to