import doctest doctest. testmod () It's same code like docstring example but I add example and doctest at last line of the code. In order to test the docstring just run the file python my_math.py. If ...
Is your feature request related to a problem? Please describe. The example code in the python docstrings isn't being automatically tested right now. This can cause the example docstrings to break over ...