Closed robnagler closed 3 years ago
py.path
is correct as per its design and the spec functionality
https://github.com/pytest-dev/py/blob/78b8794821e93f625e6d07896b7cfd771ff23fd0/py/_path/local.py#L248-L257
note that your code should use https://github.com/pytest-dev/py/blob/78b8794821e93f625e6d07896b7cfd771ff23fd0/py/_path/common.py#L315-L329 to be correct to begin with
closing as not using pylib as intended
dirname
should be the same asos.path.dirname
andlocal.dirpath()
. Both of these assertions fail:dirpath
usesos.path.dirname
anddirname
usessplit
andjoin
.