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

doctest quiet again before exit how

P: n/a
Looks like every run of doctest after the first is verbose:

$ python2.5 quiet-once.py
(0, 0)
*** DocTestRunner.merge: '__main__' in both testers; summing outcomes.
(0, 0)
*** DocTestRunner.merge: '__main__' in both testers; summing outcomes.
(0, 0)
$
$ cat quiet-once.py
import doctest
print doctest.testmod()
print doctest.testmod()
print doctest.testmod()
$

How do I ask for another quiet run, before exiting the process?

Adding the arg verbose=False to the testmod call doesn't work.

Oct 16 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
... every run of doctest after the first is verbose ...
*** DocTestRunner.merge: '__main__' in both testers; summing outcomes.
Another path to the same bug:

import doctest
print doctest.testfile(__file__, verbose=False)
print doctest.testfile(__file__, verbose=False)

Mystifiedly yours, rank Python newbie, Pat LaVarre

Oct 18 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.