Join the Kedro community

Updated 2 months ago

Pytest warning: Deprecation warning for CovPlugin.pytest_configure_node

I am getting a warning when I run pytest on a dummy project:

PytestDeprecationWarning: The hookimpl CovPlugin.pytest_configure_node uses old-style configuration options (marks or attributes).
  Please use the pytest.hookimpl(optionalhook=True) decorator instead
   to configure the hooks.
   See <a target="_blank" rel="noopener noreferrer" href="https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers">https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers</a>
    def pytest_configure_node(self, node):

..\venv\lib\site-packages\pytest_cov\plugin.py:265
\venv\lib\site-packages\pytest_cov\plugin.py:265: PytestDeprecationWarning: The hookimpl CovPlugin.pytest_testnodedown uses old-style configuration options (marks or attributes).
  Please use the pytest.hookimpl(optionalhook=True) decorator instead
   to configure the hooks.
   See <a target="_blank" rel="noopener noreferrer" href="https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers">https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers</a>
    def pytest_testnodedown(self, node, error):

-- Docs: <a target="_blank" rel="noopener noreferrer" href="https://docs.pytest.org/en/stable/how-to/capture-warnings.html">https://docs.pytest.org/en/stable/how-to/capture-warnings.html</a>

Is this something I should do anything about, or will it be addressed in a future version of Kedro?

d
N
G
6 comments

do you think it's our internal version of pluggy conflicting with pytest's? πŸ€”

pip install pytest-cov --upgrade
should make this disappear

This complains pytest-cov, not kedro

Worked like a charm! Thank you! πŸ™

Add a reply
Sign up and join the conversation on Slack