Skip to content

Commit 909ed38

Browse files
fix python2 only import loop failure
1 parent 9560576 commit 909ed38

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
@@ -17,12 +17,12 @@
1717
)
1818
from _pytest.runner import fail
1919
from _pytest.compat import FuncargnamesCompatAttr
20-
from _pytest import python
2120

2221
def pytest_sessionstart(session):
22+
import _pytest.python
2323
scopename2class.update({
24-
'class': python.Class,
25-
'module': python.Module,
24+
'class': _pytest.python.Class,
25+
'module': _pytest.python.Module,
2626
'function': _pytest.main.Item,
2727
})
2828
session._fixturemanager = FixtureManager(session)

0 commit comments

Comments
 (0)