numpy.testing.rundocs()

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:

filename : str

The path to the file for which the doctests are run.

raise_on_error : bool

Whether to raise