Skip to content
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

Causes pytest warning re deprecated pluginmanager.addhooks method #16

Closed
carljm opened this issue Jan 12, 2016 · 1 comment
Closed

Causes pytest warning re deprecated pluginmanager.addhooks method #16

carljm opened this issue Jan 12, 2016 · 1 comment

Comments

@carljm
Copy link
Contributor

carljm commented Jan 12, 2016

This is with py.test 2.8.5.

The py.test warning is "use pluginmanager.add_hookspecs instead of deprecated addhooks() method."

@carljm
Copy link
Contributor Author

carljm commented Jan 12, 2016

Looks like just replacing pluginmanager.addhooks(hooks) with pluginmanager.add_hookspecs(hooks) in pytest_addhooks is enough to solve this. Though perhaps it needs a fallback to continue supporting pre-2.8 py.test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant