Doctest geschwätzig $ python doctest_parselist.py -v Running parselist.__doc__ 0 of 0 examples failed in parselist.__doc__ Running parselist.parse_int_list.__doc__ Trying: from parselist import parse_int_list Expecting: nothing ok Trying: parse_int_list('1 2 3') Expecting: [1, 2, 3] ok 0 of 2 examples failed in parselist.parse_int_list.__doc__ 1 items had no tests: parselist 1 items passed all tests: 2 tests in parselist.parse_int_list 2 tests in 2 items. 2 passed and 0 failed. Test passed.