make nodeids precalculated, there is no sane reason to commpute lazyly

This commit is contained in:
Ronny Pfannschmidt
2018-03-09 10:52:59 +01:00
parent 45b6b7df92
commit 5e5935759e
3 changed files with 31 additions and 30 deletions

View File

@@ -300,7 +300,7 @@ class Session(nodes.FSCollector):
def __init__(self, config):
nodes.FSCollector.__init__(
self, config.rootdir, parent=None,
config=config, session=self)
config=config, session=self, nodeid="")
self.testsfailed = 0
self.testscollected = 0
self.shouldstop = False
@@ -311,9 +311,6 @@ class Session(nodes.FSCollector):
self.config.pluginmanager.register(self, name="session")
def _makeid(self):
return ""
@hookimpl(tryfirst=True)
def pytest_collectstart(self):
if self.shouldfail: