-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use hookwrapper with pytest_configure #2423
Comments
|
Thanks @RonnyPfannschmidt , prior to 2.8.0 we were able to use |
@hdattada what did you use multicall for? given how the pytest_configure hook is used/reinvoked over time its simply not possible to do anything correct with that so at best your code worked by sheer luck if your desire is to wrap around configure that happens at the do_configure time of pytes, i strongly suggest to outline your use-case and goal as i believe there could be a far more clean way to do this with current pytest |
@RonnyPfannschmidt I am still new to this so excuse my naive understanding. I am taking over something that was developed earlier, from the information I have and from the little I understand it was used to wait for all other I can give you an idea of my usecase/goal, (this will sound weird). We have a test framework that uses pytest-xdist to distribute tests to multiple targets. As part of this framework we have an internal implementation of retrying tests on failures. There is a limitation with
|
you can implement that monkeypatch in a
note that this kind of usage is explicitly unsupported for now - so it will likely break again in future |
I am referring to https://docs.pytest.org/en/latest/writing_plugins.html for implementing my own plugin. I want the pytest_configure hook in my plugin to yield to all other plugins, so I am using
@pytest.hookimpl(hookwrapper=True)
. But I receive an errorhook 'pytest_configure' historic incompatible to hookwrapper
pip list
of the virtual environment you are usingpytest-3.0.7
15.6.0 Darwin Kernel Version 15.6.0
The text was updated successfully, but these errors were encountered: