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

Does not work with Pytest 4.1: pytest_namespace hook is removed #13

Closed
t2y opened this issue Jun 27, 2020 · 6 comments
Closed

Does not work with Pytest 4.1: pytest_namespace hook is removed #13

t2y opened this issue Jun 27, 2020 · 6 comments
Assignees
Labels
bug Something isn't working imported major

Comments

@t2y
Copy link
Owner

t2y commented Jun 27, 2020

(Original issue 13 created by yeputons on 2019-03-03T06:40:36.920416+00:00)

Example error:

pluggy.manager.PluginValidationError: unknown hook 'pytest_namespace' in plugin <module 'pytest_quickcheck.plugin' from '/usr/local/lib/python3.6/dist-packages/pytest_quickcheck/plugin.py'>

It's due to the using of deprecated pytest_namespace hook (since 3.7.0) which was removed in PyTest 4.1.0.

There is a guide on updating

@t2y t2y added bug Something isn't working imported major labels Jun 27, 2020
@t2y t2y self-assigned this Jun 27, 2020
@t2y
Copy link
Owner Author

t2y commented Jun 27, 2020

(Original issue was assigned to t2y)

(Original issue 13 last updated on 2020-03-06T02:39:43.417955+00:00)

(Issue automaticaly closed due to status in Bitbucket: resolved)

@t2y t2y closed this as completed Jun 27, 2020
@t2y
Copy link
Owner Author

t2y commented Jun 27, 2020

(Original comment by hjr3 on 2019-10-14T23:09:06.712988+00:00)

I think this fixes the issue: https://bitbucket.org/pytest-dev/pytest-quickcheck/pull-requests/5/update-to-work-with-pytest-5xx

@t2y
Copy link
Owner Author

t2y commented Jun 27, 2020

(Original comment by t2y on 2019-11-15T08:06:36.913632+00:00)

Thank you!

@t2y
Copy link
Owner Author

t2y commented Jun 27, 2020

(Original comment by cebaa on 2020-03-05T16:26:11.754987+00:00)

I see this is not in the latest https://pypi.org/project/pytest-quickcheck/ (0.8.3 currently). Are there plans to push a new release with this fix included?

@t2y
Copy link
Owner Author

t2y commented Jun 27, 2020

(Original comment by t2y on 2020-03-06T01:27:15.413335+00:00)

hmm, I found another issue and have to fix.

https://bitbucket.org/pytest-dev/pytest-quickcheck/issues/14/cannot-import-name-markinfo-from

@t2y
Copy link
Owner Author

t2y commented Jun 27, 2020

(Original comment by t2y on 2020-03-06T02:39:43.408748+00:00)

I released the current source code as 0.8.4. However, I’m not sure whether it works with pytest 4.x and 5.x.

https://pypi.org/project/pytest-quickcheck/0.8.4/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working imported major
Projects
None yet
Development

No branches or pull requests

1 participant