Skip to content

Commit 56cdd74

Browse files
fix python2 only import loop failure
1 parent c47afd4 commit 56cdd74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_pytest/fixtures.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
)
1919
from _pytest.runner import fail
2020
from _pytest.compat import FuncargnamesCompatAttr
21-
from _pytest import python
2221

2322
def pytest_sessionstart(session):
23+
import _pytest.python
2424
scopename2class.update({
25-
'class': python.Class,
26-
'module': python.Module,
25+
'class': _pytest.python.Class,
26+
'module': _pytest.python.Module,
2727
'function': _pytest.main.Item,
2828
})
2929
session._fixturemanager = FixtureManager(session)

0 commit comments

Comments
 (0)