-
Notifications
You must be signed in to change notification settings - Fork 106
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
Doctests should not need to import odl #410
Comments
Any idea on how to do this? |
In Numpy, they modify the test context by injecting |
Seems that we would need to do something similar to that then. |
Actually there is a functionality in |
That would require us to wait quite noticable time, at least half a few months after release, to allow people to catch up. |
Sure. We can still keep this issue open until then, just to remember it. Requiring a very new version of |
This is done. |
EDIT: hit the Enter button too early, here comes the text.
When writing running the doctests, often times one needs some functionality from another part of the library. Then, an explicit
import odl
is necessary, otherwise pytest complains. I noticed that in Numpy, they don't have to do that. Probably one can tell thedoctest
module thing what to import before running. I'll investigate that possibility.The text was updated successfully, but these errors were encountered: