[TIP] coverage.py with doctest.testfile
Titus Brown
titus at caltech.edu
Tue Mar 6 11:31:04 PST 2007
On Tue, Mar 06, 2007 at 12:43:21AM -0800, David Montgomery wrote:
-> I have coverage.py working with doctest.testmod(), but
-> not with doctest.testfile(). The external tests run, but
-> coverage.py doesn't pick up the lines executed by the
-> text file.
Just FYI:
I looked into this with the mechanize tests, and I believe the problem
is that doctest.testfile uses the sys.settrace hook, which both figleaf
and coverage.py utilize for line coverage recording.
--titus
More information about the testing-in-python
mailing list