FSCollector: keep/use given fspath
Via https://github.com/blueyed/pytest/pull/42.
This commit is contained in:
parent
7f851a215b
commit
0c7c26fe6e
|
@ -364,8 +364,9 @@ def _check_initialpaths_for_relpath(session, fspath):
|
||||||
|
|
||||||
|
|
||||||
class FSCollector(Collector):
|
class FSCollector(Collector):
|
||||||
def __init__(self, fspath, parent=None, config=None, session=None, nodeid=None):
|
def __init__(
|
||||||
fspath = py.path.local(fspath) # xxx only for test_resultlog.py?
|
self, fspath: py.path.local, parent=None, config=None, session=None, nodeid=None
|
||||||
|
) -> None:
|
||||||
name = fspath.basename
|
name = fspath.basename
|
||||||
if parent is not None:
|
if parent is not None:
|
||||||
rel = fspath.relto(parent.fspath)
|
rel = fspath.relto(parent.fspath)
|
||||||
|
|
Loading…
Reference in New Issue