Skip to content

Replace deprecated addhooks call. #14

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

Closed
wants to merge 1 commit into from
Closed

Conversation

vodik
Copy link

@vodik vodik commented Sep 29, 2015

Breaks in pytest 2.8 due to a regression. See pytest-dev/pytest#1034

@vodik
Copy link
Author

vodik commented Sep 29, 2015

Failure in the CI seems unrelated to this change

@@ -58,4 +58,4 @@ def pytest_runtest_call(item):
def pytest_addhooks(pluginmanager):
"""Register plugin hooks."""
from pytest_factoryboy import hooks
pluginmanager.addhooks(hooks)
pluginmanager.add_hookspecs(hooks)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will need a change to requirements pytest >= 2.8.0
and that version has a bug with xdist pytest-dev/pytest#1062

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I can update that too if you'd like. But there's no rush anymore, 2.8.1 should work.

I don't actually use factoryboy personally, I only put this up because it helped me triage that pytest bug.

@olegpidsadnyi
Copy link
Contributor

It was also fixed in #19, thanks anyway

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

Successfully merging this pull request may close these issues.

3 participants