On Jan 9, 6:14 pm, Steven D'Aprano wrote:
> >>Is there a way to have unittest.main() find and run doc_test_suite
> >>together with the other test suites?
I only recently began using unittest, so I only know a little about
it. There are almost certainly more clever ways to what you want, but
wha
On Sun, 09 Jan 2011 08:56:52 -0800, Aahz wrote:
> In article <4d038b63$0$3$c3e8da3$54964...@news.astraweb.com>, Steven
> D'Aprano wrote:
>>
>>Is there a way to have unittest.main() find and run doc_test_suite
>>together with the other test suites?
>
> You probably need to use nose or someth
In article <4d038b63$0$3$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
>
>Is there a way to have unittest.main() find and run doc_test_suite
>together with the other test suites?
You probably need to use nose or something. (That's what we're doing.)
--
Aahz (a...@pythoncraft
I have a module with doctests, and a module that performs unit testing
for it. The test module looks like this:
import doctest
import unittest
import module_to_test
# ...
# many test suites
# ...
if __name__ == '__main__':
doctest.testmod(module_to_test)
unittest.main()
but now I'd