run_doctests¶
- odl.util.testutils.run_doctests(skip_if=False, **kwargs)[source]¶
Run all doctests in the current module.
This function calls
doctest.testmod()
, by default with the optionsoptionflags=doctest.NORMALIZE_WHITESPACE
andextraglobs={'odl': odl, 'np': np}
. This can be changed with keyword arguments.- Parameters:
- skip_ifbool
For
True
, skip the doctests in this module.- kwargs
Extra keyword arguments passed on to the
doctest.testmod
function.