Skip to content

hookimpl deprecation warningΒ #266

@alexforencich

Description

@alexforencich

When running pytest with pytest-sugar 0.9.6 installed, I am getting the following warning:

ERROR    cocotb:simulator.py:302 /usr/lib/python3.10/site-packages/pytest_sugar.py:155: PytestDeprecationWarning: The hookimpl pytest_configure uses old-style configuration options (marks or attributes).
ERROR    cocotb:simulator.py:302 Please use the pytest.hookimpl(trylast=True) decorator instead
ERROR    cocotb:simulator.py:302  to configure the hooks.
ERROR    cocotb:simulator.py:302  See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
ERROR    cocotb:simulator.py:302   @pytest.mark.trylast

It looks like this may have been fixed in #255, so presumably this would be fixed by cutting a new release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions