Skip to content

Error in matplotlib inline test when using --nbdime/nbval because of missing parameter in pytest hook call ? #230

@Carreau

Description

@Carreau
INTERNALERROR>   File ".../site-packages/nbval/nbdime_reporter.py", line 59, in pytest_runtest_logreport
INTERNALERROR>     res = self.config.hook.pytest_report_teststatus(report=rep)
INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File ".../site-packages/pluggy/_hooks.py", line 509, in __call__
INTERNALERROR>     self._verify_all_args_are_provided(kwargs)
INTERNALERROR>   File ".../site-packages/pluggy/_hooks.py", line 490, in _verify_all_args_are_provided
INTERNALERROR>     warnings.warn(
INTERNALERROR> UserWarning: Argument(s) 'config' which are declared in the hookspec cannot be found in this hook call

I'm not quite sure what to do as it seem config has been a required parameter for quite some time. Adding config-self.config seem to work, but trigger other issues, and it seem unlikely that a problem like this stayed undiscovered for such a long time; so I'm likely doing something wrong ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions