Skip to content

Commit c70efaa

Browse files
authored
Merge pull request #3047 from RonnyPfannschmidt/mark-newapi
move node base classes from main to nodes
2 parents 0d83dd1 + 94608c6 commit c70efaa

File tree

10 files changed

+388
-379
lines changed

10 files changed

+388
-379
lines changed

_pytest/fixtures.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@
2626

2727
def pytest_sessionstart(session):
2828
import _pytest.python
29+
import _pytest.nodes
2930

3031
scopename2class.update({
3132
'class': _pytest.python.Class,
3233
'module': _pytest.python.Module,
33-
'function': _pytest.main.Item,
34+
'function': _pytest.nodes.Item,
3435
'session': _pytest.main.Session,
3536
})
3637
session._fixturemanager = FixtureManager(session)

_pytest/hookspec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def pytest_collection_modifyitems(session, config, items):
153153
154154
:param _pytest.main.Session session: the pytest session object
155155
:param _pytest.config.Config config: pytest config object
156-
:param List[_pytest.main.Item] items: list of item objects
156+
:param List[_pytest.nodes.Item] items: list of item objects
157157
"""
158158

159159

0 commit comments

Comments
 (0)