-
Notifications
You must be signed in to change notification settings - Fork 17
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
Implement handling of Expected exceptions in Doctests. #274
Comments
If papyri is going to execute doctest examples it should just use the |
The problem is that we execute also for Jedi to properly infer which objects are in example. I was unable to do it with doctest. |
In my experience doctest is pretty extensible. I think it might be possible to hook into it to handle these things. |
Really we need to make the whole doctester pluggable, so that different libraries can use different doctesting tools. Picking just one thing as a default is in appropriate for all libraries, although if there has to be a default, it should be the basic |
I agree that we should make it pluggable, like many other things, but this might come at a later date, once we have a better understanding of what the needs are. |
Currently we just exclude docstrings examples which raise exceptions unconditionally.
We should check that the error match what is in the docstring, like the classic doctes.
The text was updated successfully, but these errors were encountered: