Author ncoghlan
Recipients brett.cannon, ncoghlan, nedbat
Date 2011-05-02.13:46:09
SpamBayes Score 0.000178433
Marked as misclassified No
Message-id <1304343970.06.0.71963253791.issue11978@psf.upfronthosting.co.za>
In-reply-to
Content
http://nedbatchelder.com/code/coverage/subprocess.html describes how to instruct a test suite that spawns subprocesses to correctly report coverage data for code covered only in those subprocesses.

regrtest currently doesn't do this, so modules that use subprocesses to run their tests may report inaccurate coverage numbers when using this tool (as recommended in the devguide). (Those numbers are irredeemably inaccurate when it comes to regrtest's own coverage assessment)

It may be better to build explicit invocation of coverage.py when regrtest is run under coverage.py into test.script_helper rather than trying to use the implicit mechanism though (as neither sitecustomize nor a .pth file are particularly good ideas when running Python's own test suite).
History
Date User Action Args
2011-05-02 13:46:10ncoghlansetrecipients: + ncoghlan, brett.cannon, nedbat
2011-05-02 13:46:10ncoghlansetmessageid: <1304343970.06.0.71963253791.issue11978@psf.upfronthosting.co.za>
2011-05-02 13:46:09ncoghlanlinkissue11978 messages
2011-05-02 13:46:09ncoghlancreate