diff --git a/_pytest/fixtures.py b/_pytest/fixtures.py index 714a8b406..2c7c9e771 100644 --- a/_pytest/fixtures.py +++ b/_pytest/fixtures.py @@ -18,12 +18,12 @@ from _pytest.compat import ( ) from _pytest.runner import fail from _pytest.compat import FuncargnamesCompatAttr -from _pytest import python def pytest_sessionstart(session): + import _pytest.python scopename2class.update({ - 'class': python.Class, - 'module': python.Module, + 'class': _pytest.python.Class, + 'module': _pytest.python.Module, 'function': _pytest.main.Item, }) session._fixturemanager = FixtureManager(session)