By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,224 Members | 1,233 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,224 IT Pros & Developers. It's quick & easy.

Store doctest verbose results to a variable

P: n/a
Is it possible to store doctest's verbose output to a variable?

For example:

import doctest, my_test_module
a = doctest.testmod(my_test_module)

The contents of 'a' is the tuple of passed and failed results. I tried
passing verbose mode to the testmod function, but 'a' is still a tuple.

Any help is greatly appreciated.

Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"mitchell" <mf****@gmail.com> wrote:
Is it possible to store doctest's verbose output to a variable?

For example:

import doctest, my_test_module
a = doctest.testmod(my_test_module)

The contents of 'a' is the tuple of passed and failed results. I tried
passing verbose mode to the testmod function, but 'a' is still a tuple.

Any help is greatly appreciated.


the third example on this page

http://effbot.org/librarybook/stringio.htm

shows one way to do that.

</F>

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.