diff --git a/tests/test_pytest_mypy.py b/tests/test_pytest_mypy.py index eabca0e..77f04c1 100644 --- a/tests/test_pytest_mypy.py +++ b/tests/test_pytest_mypy.py @@ -279,7 +279,10 @@ def pyfunc(x: int) -> str: def pytest_collection_modifyitems(session, config, items): plugin = config.pluginmanager.getplugin('mypy') items.append( - plugin.MypyFileItem(py.path.local('good.py'), session), + plugin.MypyFileItem.from_parent( + parent=session, + name=str(py.path.local('good.py')), + ), ) ''') name = 'empty'