471,310 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

trace module and doctest

I am trying to use the trace module with the --count flag to test for
statement coverage in my doctests. The trace coverage listing is very
weird, marking many statements as unexecuted which were clearly executed
during the run (I can see their output on the screen). Is this some known
interaction between the trace and doctest modules?

Thanks,

--
Skip Montanaro - sk**@pobox.com - http://www.webfast.com/~skip/
Nov 21 '07 #1
1 1099
sk**@pobox.com writes:
I am trying to use the trace module with the --count flag to test for
statement coverage in my doctests. The trace coverage listing is very
weird, marking many statements as unexecuted which were clearly executed
during the run (I can see their output on the screen). Is this some known
interaction between the trace and doctest modules?
Yes:

http://python-nose.googlecode.com/sv...ns/doctests.py

http://svn.zope.org/Zope3/trunk/src/...28703&r2=28705
John
Nov 22 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Michele Simionato | last post: by
4 posts views Thread by Max M | last post: by
5 posts views Thread by Michele Simionato | last post: by
reply views Thread by davidlmontgomery | last post: by
reply views Thread by emin.shopper | last post: by
3 posts views Thread by Gary Jefferson | last post: by
5 posts views Thread by Johann C. Rocholl | last post: by
1 post views Thread by Joe Strout | last post: by
2 posts views Thread by Joe Strout | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.