-
Notifications
You must be signed in to change notification settings - Fork 1
unknown hook 'pytest_xdist_node_collection_finished' in plugin mozlog #1
Comments
There has been a follow-up fix to the new feature which stops it reporting errors in some cases which it shouldn't (pytest-dev/pytest#2292), however I think this might actually not help here, since I think pytest-mozlog isn't marking the xdist plugin as optional, like so: |
Yeah the followup in pytest didn't help, the issue still occurs in pytest 3.1.1. |
Sorry for the confusion, this repo was for an early prototype of a pytest-mozlog plugin. The actual source code is now to be found in mozlog itself: https://dxr.mozilla.org/mozilla-central/source/testing/mozbase/mozlog/mozlog/pytest_mozlog I think all that's needed here is to mark the hooks as optional, such as: @pytest.mark.optionalhook
def pytest_xdist_node_collection_finished(self, node, ids):
'''Called after each pytest-xdist node collection is completed'''
self._log_suite_start(ids) Alternatively, install or add pytest-xdist as a dependency, but that not ideal as the pytest-mozlog plugin should work with or without pytest-xdist. |
I'll add a note to the README of this repo redirecting to the canonical source. |
Also, if you're not using pytest-mozlog and want to disable it, see https://docs.pytest.org/en/latest/usage.html?highlight=disable%20plugin#disabling-plugins for details, but something like |
This has now been raised as bug 1375145. |
A new version of pytest has been released (3.1.0) with some extra hook checking pytest-dev/pytest#1821
Rolling back to 3.0.7 resolves this for now.
The text was updated successfully, but these errors were encountered: