remove pytest_namespace from _pytest.fixtures

This commit is contained in:
Ronny Pfannschmidt 2017-02-28 17:59:48 +01:00
parent ae234786ea
commit 23bc9815c4
1 changed files with 5 additions and 9 deletions

View File

@ -19,6 +19,11 @@ from _pytest.compat import (
)
def pytest_sessionstart(session):
scopename2class.update({
'class': pytest.Class,
'module': pytest.Module,
'function': pytest.Item,
})
session._fixturemanager = FixtureManager(session)
@ -45,15 +50,6 @@ def scopeproperty(name=None, doc=None):
return decoratescope
def pytest_namespace():
scopename2class.update({
'class': pytest.Class,
'module': pytest.Module,
'function': pytest.Item,
})
return {}
def get_scope_node(node, scope):
cls = scopename2class.get(scope)
if cls is None: