make sure ihook uses a node's fspath - important for hooks
e.g. during a Module's collect to pick up conftest.py files residing in the same dir
This commit is contained in:
@@ -288,6 +288,7 @@ class PyCollector(PyobjMixin, pytest.Collector):
|
||||
return l
|
||||
|
||||
def makeitem(self, name, obj):
|
||||
#assert self.ihook.fspath == self.fspath, self
|
||||
return self.ihook.pytest_pycollect_makeitem(
|
||||
collector=self, name=name, obj=obj)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user