doctest not seeing any of my doc tests

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Sun Sep 7 09:59:46 EDT 2008


Steven D'Aprano, first of all you can try to run a minimal module, to
see if your doctesting works, like:

"""
>>> 1 + 1
3
"""
def foo():
    """
    >>> foo()
    1
    """
    return 0
import doctest
doctest.testmod()

If that works correctly, then you can show us some more of the code
and tests.

Bye,
bearophile



More information about the Python-list mailing list