Skip to content

Commit e71b906

Browse files
committed
Fix test_mypy_indirect_inject
1 parent 6f8f19a commit e71b906

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_pytest_mypy.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,10 @@ def pyfunc(x: int) -> str:
279279
def pytest_collection_modifyitems(session, config, items):
280280
plugin = config.pluginmanager.getplugin('mypy')
281281
items.append(
282-
plugin.MypyFileItem(py.path.local('good.py'), session),
282+
plugin.MypyFileItem.from_parent(
283+
parent=session,
284+
name=str(py.path.local('good.py')),
285+
),
283286
)
284287
''')
285288
name = 'empty'

0 commit comments

Comments
 (0)