[pypy-issue] Issue #3045: pathlib path resolving incorrectly (pypy/pypy)

H. Turgut Uyar issues-reply at bitbucket.org
Mon Jul 22 09:23:20 EDT 2019

New issue 3045: pathlib path resolving incorrectly

H. Turgut Uyar:

On PyPy 3.6.1 \(7.1.1-beta0\), resolving a pathlib path that contains an intermediate parent step produces an incorrect result \(at least, different from CPython\). For example, if the current directory is `/home/uyar/Projects/myproject` which contains a `docs` directory and a `setup.py` file, the following code produces `PosixPath('/home/uyar/Projects/myproject/docs')`

from pathlib import Path

Whereas in CPython the same code produces `PosixPath('/home/uyar/Projects/myproject/setup.py')`

More information about the pypy-issue mailing list