-
Notifications
You must be signed in to change notification settings - Fork 575
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
Improve formatting of Hypothesis example output #2240
Conversation
46adafe
to
9a6875f
Compare
0570aa5
to
3b83975
Compare
I think the coverage problem is pointing to something dark and terrible being wrong in Hypothesis's handling of positional arguments. 😢 |
I'm going to need to park this for some investigation of what the hell is up with positional arguments in |
Fortunately this turns out not to be the case. I still think there's probably something dark and terrible in there but I choose to ignore it for now. |
Positional-only arguments, for example... but I'm also ignoring this until after the Py2/Hy5 transition. Or possibly #961 / #2231 😬 |
This changes our printing logic to use the pretty printing library. This is partially to give nicer output, partially to give us a bit more control over how things are printed as setup for some later features...
While here I noted that the stateful testing library outputs a bunch of garbage from
@given
that is totally irrelevant to the user, and it was easier to fix that behaviour than fix the tests to assert the right things about its format, so I did that too.