import doctest import mercurial.changelog # test doctest from changelog doctest.testmod(mercurial.changelog)