From c9ab4213986c5f074a69b7abd68f0dfca8db89ba Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Thu, 16 Mar 2017 20:31:58 +0100 Subject: [PATCH] fix python2 only import loop failure --- _pytest/fixtures.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)