From e71b9064abe5fc4f0a64db3ae106cf438b953da0 Mon Sep 17 00:00:00 2001 From: David Tucker Date: Tue, 4 Aug 2020 00:34:12 -0700 Subject: [PATCH] Fix test_mypy_indirect_inject --- tests/test_pytest_mypy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'