numpy.testing.rundocs¶
-
numpy.testing.
rundocs
(filename=None, raise_on_error=True)[source]¶ Run doctests found in the given file.
By default
rundocs
raises an AssertionError on failure.- Parameters
Notes
The doctests can be run by the user/developer by adding the
doctests
argument to thetest()
call. For example, to run all tests (including doctests) fornumpy.lib
:>>> np.lib.test(doctests=True)