-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
pytest
hangs when RecursionError
happens for MagicMock
#8482
Comments
Looks like it hangs here:
|
Somewhat related: #3804 - also note this goes away with |
It happens because of quadratic loop in Traceback.recursionindex(). And comparing magic mocks (they are in |
Maybe a linear algorithm can be implemented here? UPD |
A demo for an infinite recursion:
But
pytest
just hangs:This happens on both Linux and Windows.
The text was updated successfully, but these errors were encountered: