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 -- http://mail.python.org/mailman/listinfo/python-list