Re: Python Coverage: testing a program

2013-10-24 Thread Terry Reedy
On 10/24/2013 6:36 PM, Terry Reedy wrote: OK, I added .coveragerc and that works. In the process of verifying this, I was reminded that there is an overt bug in the html report as displayed by Firefox. The fonts used for line numbers ("class='linenos'") and line text ("class='text'") are slightl

Re: Python Coverage: testing a program

2013-10-24 Thread Ned Batchelder
On 10/24/13 6:28 PM, Ethan Furman wrote: On 10/24/2013 01:54 PM, Ben Finney wrote: Terry Reedy writes: On 10/24/2013 1:46 PM, Ned Batchelder wrote: It's been fun dropping the contortions for coverage.py 4.x, though! One request: ignore "if __name__ == '__main__':" clauses at the end of fil

Re: Python Coverage: testing a program

2013-10-24 Thread Ben Finney
Ethan Furman writes: > On 10/24/2013 01:54 PM, Ben Finney wrote: > > You can do this already with current Coverage: tell Coverage to > > exclude http://nedbatchelder.com/code/coverage/excluding.html> > > specific statements, and it won't count them for coverage > > calculations. > > While that's

Re: Python Coverage: testing a program

2013-10-24 Thread Ben Finney
Terry Reedy writes: > OK, I added .coveragerc and that works. In the process of verifying > this, I was reminded that there is an overt bug in the html report […] At this point, it's probably best to direct this sequence of bug reports to https://bitbucket.org/ned/coveragepy/issues/>. -- \

Re: Python Coverage: testing a program

2013-10-24 Thread Ethan Furman
On 10/24/2013 01:54 PM, Ben Finney wrote: Terry Reedy writes: On 10/24/2013 1:46 PM, Ned Batchelder wrote: 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,

Re: Python Coverage: testing a program

2013-10-24 Thread Terry Reedy
On 10/24/2013 4:54 PM, Ben Finney wrote: Terry Reedy writes: On 10/24/2013 1:46 PM, Ned Batchelder wrote: 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,

Re: Python Coverage: testing a program

2013-10-24 Thread Mark Lawrence
On 24/10/2013 21:54, Ben Finney wrote: Terry Reedy writes: On 10/24/2013 1:46 PM, Ned Batchelder wrote: 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