doctest in Pythonwin

Terry Reedy tjreedy at udel.edu
Fri Aug 9 19:53:20 EDT 2002


Running the following boilerplate from the library docs

#doctesttest.py

def _test():
    import doctest, doctesttest
    doctest.testmod(doctesttest)

if __name__ == '__main__':
    _test()

gives the following output instead of the nothing promised by the docs

>>> *** Tester.merge: 'doctesttest' in both testers; summing outcomes.

For one file, I also got similar lines for each function, but have not
yet discerned the rule.  Is this an unavoidable peculiarity of running
doctest in this environment?

Terry J. Reedy






More information about the Python-list mailing list