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: |
|
---|
The doctests can be run by the user/developer by adding the doctests
argument to the test()
call. For example, to run all tests (including doctests) for numpy.lib
:
>>> np.lib.test(doctests=True) # doctest: +SKIP
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.testing.rundocs.html