Skip to content

fake_pathlib's resolve() does not reproduce error when path has file ancestor #139

@romanlevin

Description

@romanlevin

Under Python 3.6:

>>> p = pathlib.Path('/path/to/file/this can not exist')
>>> p.resolve()
Traceback (most recent call last):
  ...
NotADirectoryError: [Errno 20] Not a directory: '/path/to/file/this can not exist'

pyfakefs.fake_pathlib.FakePath.resolve() does not raise an exception.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions