-
-
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
AssertionRewritingHook object has no attribute find_spec #1888
Comments
I am observing this issue again, but I can't reproduce it locally... |
For the record, pinning to |
The real error is:
See #5358. |
Is it possible that the issue is triggered by test classes with > 20 tests? |
Yes, but can you please post the full output so we can check if it is the same problem? |
Here it is below. Fixed by using
|
Yes, this will be fixed in 4.6.1, should be released soon. |
what should I do if i see this on 4.6.3 ? |
Hey @curlup,
Probably report it as a bug, preferably with a small reproducible example. |
When setting up, I ran into an issue similar to this (on a Mac): pytest-dev/pytest#1888 Resolved by using the latest pytest
Beginning with pytest 3.0.1, the tests in setuptools (example build) are failing with this error:
This issue was not revealed with pytest 3.0.0 due to the issue with collection.
For now, setuptools is pinning to pytest 2.x (see pypa/setuptools#765) to work around the issue.
I expect this issue may be triggered by the (admittedly hacky) sandboxing that setuptools does, so setuptools may have some culpability. I have not researched the error further, so I welcome advice on what might be triggering this error.
The text was updated successfully, but these errors were encountered: