Author techtonik
Recipients docs@python, techtonik
Date 2011-03-03.19:57:24
SpamBayes Score 4.74553e-08
Marked as misclassified No
Message-id <>
I can't find a way to execute DocTests contained in a separate README.txt file using unittest.main() function. That doesn't allow to control verbosity for debugging.

I am doing it this way in the

import doctest
import unittest
if __name__ == '__main__':
  runner = unittest.TextTestRunner()'README.txt',

I could find a way to subclass TestLoader.loadTestsFromNames() by looking at the source code of undocumented TestProgram. I'd like to see this use case at least covered by documentation if not properly developed for stdlib of Python4.
Date User Action Args
2011-03-03 19:57:25techtoniksetrecipients: + techtonik, docs@python
2011-03-03 19:57:25techtoniksetmessageid: <>
2011-03-03 19:57:24techtoniklinkissue11389 messages
2011-03-03 19:57:24techtonikcreate