remove after_initial_collect hook
This commit is contained in:
parent
0a7237b72f
commit
2f984e0c23
|
@ -79,9 +79,6 @@ def pytest_collect_file(path, parent):
|
|||
def pytest_collectstart(collector):
|
||||
""" collector starts collecting. """
|
||||
|
||||
def pytest_after_initial_collect(collector):
|
||||
""" after the initial file system walk before genitems"""
|
||||
|
||||
def pytest_itemcollected(item):
|
||||
""" we just collected a test item. """
|
||||
|
||||
|
|
|
@ -394,10 +394,7 @@ class Session(FSCollector):
|
|||
self._initialparts.append(parts)
|
||||
self._initialpaths.add(parts[0])
|
||||
self.ihook.pytest_collectstart(collector=self)
|
||||
try:
|
||||
rep = self.ihook.pytest_make_collect_report(collector=self)
|
||||
finally:
|
||||
self.ihook.pytest_after_initial_collect(collector=self)
|
||||
rep = self.ihook.pytest_make_collect_report(collector=self)
|
||||
self.ihook.pytest_collectreport(report=rep)
|
||||
self.trace.root.indent -= 1
|
||||
if self._notfound:
|
||||
|
|
Loading…
Reference in New Issue