-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Crash with special objects in plugins #1073
Comments
Is this a bug in pluggy? |
@pelme yes, the workflow for fixing is fixing in pluggy, doing a pluggy release and then vendoring that pluggy release into pytest |
Created a PR at pytest-dev/pluggy#12. As @RonnyPfannschmidt said, oOnce that is merged and a new |
hpk42
added a commit
to hpk42/pytest
that referenced
this issue
Sep 28, 2015
…ame is not prefixed with pytest_.
RonnyPfannschmidt
added a commit
that referenced
this issue
Sep 28, 2015
fix issue #1073 -- shortcut plugin hook lookup if the attrname is not prefixed with pytest_.
tomviner
pushed a commit
to tomviner/pytest-django
that referenced
this issue
Jun 22, 2016
mfa
pushed a commit
to aexeagmbh/pytest-django
that referenced
this issue
May 17, 2017
beyondgeeks
added a commit
to beyondgeeks/django-pytest
that referenced
this issue
Sep 6, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having objects in conftest that cannot have getattr called causes pytest to crash.
Here is a small example that shows this:
conftest.py:
This happens in practice with django settings (
django.conf.settings
) that must not be touched until Django is properly configured: pytest-dev/pytest-django#272The text was updated successfully, but these errors were encountered: