-
Notifications
You must be signed in to change notification settings - Fork 591
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
Bizarre quirk with how Hypothesis formats the error message for falsifying examples #4183
Comments
I tried |
This seems to happen because the implicit ExceptionGroup in case 2 has empty traceback, and hypothesis/hypothesis-python/src/hypothesis/core.py Lines 1111 to 1117 in f189e87
|
Empty was the wrong word, it would be more precise to say that the implicit ExceptionGroup — according the traceback — seems to be constructed by the caller (hypothesis) rather than the raiser (method under test). I'm not planning to follow this up right now, but at least a pointer in the right direction. |
Consider this test:
It will fail nondeterministically, of course. Hypothesis reports a rich error message describing the failure:
Now consider this one:
This also fails nondeterministically, but with a much less helpful message:
What is the difference...? I feel like I'm going insane.
This is with Hypothesis v6.112.1.
The text was updated successfully, but these errors were encountered: