aragilar / pytest-mpi

Pytest plugin for working with MPI
https://pytest-mpi.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
19 stars 7 forks source link

Internal Error when Calling with pytest 3.4.1 #3

Closed zhang-alvin closed 4 years ago

zhang-alvin commented 4 years ago

I think this is quite a neat project.

Unfortunately I can't seem to get it to work with my current setup/project. When I call pytest (version 3.4.1), I get the following error message:

INTERNALERROR> pluggy.PluginValidationError: Plugin 'pytest_mpi' for hook 'pytest_terminal_summary'
INTERNALERROR> hookimpl definition: pytest_terminal_summary(terminalreporter, exitstatus, config)
INTERNALERROR> Argument(s) {'config'} are declared in the hookimpl but can not be found in the hookspec

I did a pip install pytest-mpi to install. I'm not familiar with these error messages. Is there something obvious that I'm missing or doing wrong?

aragilar commented 4 years ago

@zhang-alvin Sorry for not replying before, #5 suggests you need pytest>=4.2 (4.6 apparently is the last pytest that supports python 2.7, if that helps).