Re: [Python-Dev] Socket servers in the test suite

2011-05-02 Thread Vinay Sajip
Nick Coghlan gmail.com> writes: > sure the urllib tests already fire up a local server). Starting down > the path of standardisation of that test functionality would be good. I've made a start with test_logging.py by implementing some potential server classes for use in tests: in the latest test

Re: [Python-Dev] Socket servers in the test suite

2011-04-30 Thread Éric Araujo
Hi, Le 29/04/2011 18:09, Vinay Sajip a écrit : [Georg] BTW, didn't we agree not to put "pragma" comments into the stdlib code? I'd be grateful for a link to the prior discussion - it must have passed me by originally, and I searched python-dev on gmane but couldn't find any threads about thi

Re: [Python-Dev] Socket servers in the test suite

2011-04-29 Thread Vinay Sajip
Terry Reedy udel.edu> writes: > > http://coverage.livinglogic.de/ > > which, however, currently has nothing for *.py. > Perhaps a glitch/bug, as there used to be such. > Anyone who knows the page owner might ask about this. > Thanks for the pointer, nevertheless, Terry. Regards, Vinay Sajip

Re: [Python-Dev] Socket servers in the test suite

2011-04-29 Thread Terry Reedy
On 4/29/2011 3:11 PM, Terry Reedy wrote: On 4/29/2011 12:09 PM, Vinay Sajip wrote: BTW, is there a public place somewhere showing stdlib coverage statistics? I looked on the buildbot pages as the likeliest home for them, but perhaps I missed them. http://docs.python.org/devguide/coverage.html

Re: [Python-Dev] Socket servers in the test suite

2011-04-29 Thread Terry Reedy
On 4/29/2011 12:09 PM, Vinay Sajip wrote: BTW, is there a public place somewhere showing stdlib coverage statistics? I looked on the buildbot pages as the likeliest home for them, but perhaps I missed them. http://docs.python.org/devguide/coverage.html has a link to http://coverage.livinglogic

Re: [Python-Dev] Socket servers in the test suite

2011-04-29 Thread Vinay Sajip
[Georg] > > BTW, didn't we agree not to put "pragma" comments into the stdlib code? I'd be grateful for a link to the prior discussion - it must have passed me by originally, and I searched python-dev on gmane but couldn't find any threads about this. [Nick] > I think some folks objected, but si

Re: [Python-Dev] Socket servers in the test suite

2011-04-29 Thread Nick Coghlan
On Fri, Apr 29, 2011 at 9:44 PM, Georg Brandl wrote: > On 27.04.2011 23:23, Vinay Sajip wrote: >> I've been recently trying to improve the test coverage for the logging >> package, >> and have got to a not unreasonable point: >> >> logging/__init__.py 99% (96%) >> logging/config.py 89% (85%) >> l

Re: [Python-Dev] Socket servers in the test suite

2011-04-29 Thread Georg Brandl
On 27.04.2011 23:23, Vinay Sajip wrote: > I've been recently trying to improve the test coverage for the logging > package, > and have got to a not unreasonable point: > > logging/__init__.py 99% (96%) > logging/config.py 89% (85%) > logging/handlers.py 60% (54%) > > where the figures in parenth

Re: [Python-Dev] Socket servers in the test suite

2011-04-28 Thread Éric Araujo
Hi, >> I'm at the point where to appreciably increase coverage, I'd need to write >> some >> test servers to exercise client code in SocketHandler, DatagramHandler and >> HTTPHandler. >> >> I notice there are no utility classes in test.support to help with this kind >> of >> thing - would there

Re: [Python-Dev] Socket servers in the test suite

2011-04-28 Thread Giampaolo Rodolà
2011/4/27 Vinay Sajip : > I've been recently trying to improve the test coverage for the logging > package, > and have got to a not unreasonable point: > > logging/__init__.py 99% (96%) > logging/config.py 89% (85%) > logging/handlers.py 60% (54%) > > where the figures in parentheses include branc

Re: [Python-Dev] Socket servers in the test suite

2011-04-28 Thread Antoine Pitrou
On Thu, 28 Apr 2011 07:23:43 + (UTC) Vinay Sajip wrote: > Nick Coghlan gmail.com> writes: > > > If you poke around in the test directory a bit, you may find there is > > already some code along these lines in other tests (e.g. I'm pretty > > sure the urllib tests already fire up a local ser

Re: [Python-Dev] Socket servers in the test suite

2011-04-28 Thread Antoine Pitrou
On Thu, 28 Apr 2011 07:23:43 + (UTC) Vinay Sajip wrote: > Nick Coghlan gmail.com> writes: > > > If you poke around in the test directory a bit, you may find there is > > already some code along these lines in other tests (e.g. I'm pretty > > sure the urllib tests already fire up a local ser

Re: [Python-Dev] Socket servers in the test suite

2011-04-28 Thread Vinay Sajip
Nick Coghlan gmail.com> writes: > If you poke around in the test directory a bit, you may find there is > already some code along these lines in other tests (e.g. I'm pretty > sure the urllib tests already fire up a local server). Starting down > the path of standardisation of that test functiona

Re: [Python-Dev] Socket servers in the test suite

2011-04-27 Thread Nick Coghlan
On Thu, Apr 28, 2011 at 7:23 AM, Vinay Sajip wrote: > I've been recently trying to improve the test coverage for the logging > package, > and have got to a not unreasonable point: > > logging/__init__.py 99% (96%) > logging/config.py 89% (85%) > logging/handlers.py 60% (54%) > > where the figures

[Python-Dev] Socket servers in the test suite

2011-04-27 Thread Vinay Sajip
I've been recently trying to improve the test coverage for the logging package, and have got to a not unreasonable point: logging/__init__.py 99% (96%) logging/config.py 89% (85%) logging/handlers.py 60% (54%) where the figures in parentheses include branch coverage measurements. I'm at the poin