Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/_pytest/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,9 @@ def _check_initialpaths_for_relpath(session, fspath):


class FSCollector(Collector):
def __init__(self, fspath, parent=None, config=None, session=None, nodeid=None):
fspath = py.path.local(fspath) # xxx only for test_resultlog.py?
def __init__(
self, fspath: py.path.local, parent=None, config=None, session=None, nodeid=None
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bluetech
Here the fspath: py.path.local slipped in - JFI (via #6129 - where I've removed it somewhere else after your review).
However, it might be good for documentation, and/or if we should ever add typing info for it.

) -> None:
name = fspath.basename
if parent is not None:
rel = fspath.relto(parent.fspath)
Expand Down