Run doctests found in the given file.
By default rundocs raises an AssertionError on failure.
The path to the file for which the doctests are run.
Whether to raise an AssertionError when a doctest fails. Default is True.
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)
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.testing.rundocs.html