-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
pytest 8.1.dev gives {'path'} are declared in the hookimpl but can not be found in the hookspec #11779
Comments
As part of the If you can require pytest>=7, then can just replace If you still need to support pytest<7, you'll have to do something like the following I'm afraid: if PYTEST_GTE_7:
def pytest_ignore_collect(collection_path):
...
else:
def pytest_ignore_collect(path):
... |
Thank you for your prompt response! |
@pllim - I wonder why we didn't choke on the deprecation warning |
Not sure. In doctestplus, look like updates were made to handle things as Path post pytest 7 but we did not change the actual function signature. |
As part of the upgrade from pytest 8.0.0 -> 8.1.0, a deprecated function is used, which only emitted a warning before but since 8.1.0 it raises an error upon usage. So, if the usage of this function is changed in a future pytest release, the hardcoded version can be removed again ([ref] (pytest-dev/pytest#11779)).
Hi. With pytest 8.1.dev , I see this error when collecting plugins in a couple of repos:
{'path'} are declared in the hookimpl but can not be found in the hookspec
This is not a problem even with pytest 8.0rc.
Related issues/comments:
Example logs:
Plugins:
Can you please advise how to fix? Thank you! 🙏
The text was updated successfully, but these errors were encountered: