fix python2 only import loop failure

This commit is contained in:
Ronny Pfannschmidt 2017-03-16 20:31:58 +01:00
parent 147bb8aea5
commit c9ab421398
1 changed files with 3 additions and 3 deletions

View File

@ -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)