[New-bugs-announce] [issue11389] unittest: no way to control verbosity of doctests from cmd
anatoly techtonik
report at bugs.python.org
Thu Mar 3 20:57:25 CET 2011
New submission from anatoly techtonik <techtonik at gmail.com>:
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 tests.py
import doctest
import unittest
if __name__ == '__main__':
runner = unittest.TextTestRunner()
runner.run(doctest.DocFileSuite('README.txt',
optionflags=doctest.ELLIPSIS))
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.
----------
assignee: docs at python
components: Documentation, Tests
messages: 130001
nosy: docs at python, techtonik
priority: normal
severity: normal
status: open
title: unittest: no way to control verbosity of doctests from cmd
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11389>
_______________________________________
More information about the New-bugs-announce
mailing list