Run doctests found in the given file.
rundocsraises an AssertionError on failure.
- filename : str
The path to the file for which the doctests are run.
- raise_on_error : bool
Whether to raise an AssertionError when a doctest fails. Default is True.
The doctests can be run by the user/developer by adding the
doctestsargument to the
test()call. For example, to run all tests (including doctests) for