doctest quiet again before exit how

P

p.lavarre

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.
 
P

p.lavarre

... 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top