Re: Integrating doctest with unittest

2011-01-11 Thread SegundoBob
On Jan 9, 6:14 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info 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

Re: Integrating doctest with unittest

2011-01-09 Thread Aahz
In article 4d038b63$0$3$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info 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

Re: Integrating doctest with unittest

2011-01-09 Thread Steven D'Aprano
On Sun, 09 Jan 2011 08:56:52 -0800, Aahz wrote: In article 4d038b63$0$3$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Is there a way to have unittest.main() find and run doc_test_suite together with the other test suites? You probably

Integrating doctest with unittest

2010-12-11 Thread Steven D'Aprano
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