Maintaining a backported module

Terry Reedy tjreedy at udel.edu
Thu Oct 24 16:37:07 EDT 2013


On 10/24/2013 1:46 PM, Ned Batchelder wrote:
>> On Thu, 24 Oct 2013 06:36:04 -0400, Ned Batchelder wrote:
>>> coverage.py currently runs on 2.3 through 3.4

I want to thank you for this package. I have used it when writing test 
modules for idlelib modules and aiming for 100% coverage forces me to 
really understand the code tested to hit all the conditional lines.

> It's been fun dropping the contortions for coverage.py 4.x, though!

One request: ignore "if __name__ == '__main__':" clauses at the end of 
files, which cannot be run under coverage.py, so 100% coverage is 
reported as 100% instead of 9x%.

-- 
Terry Jan Reedy




More information about the Python-list mailing list