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:
holger krekel
2012-10-22 16:12:22 +02:00
parent f28f073c7c
commit 05c86aeb28
6 changed files with 40 additions and 13 deletions

View File

@@ -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)