[Zope-Coders] Re: [Zope-Checkins] CVS: ZODB3/ZODB/tests - testConfig.py:1.9

Chris Withers chrisw@nipltd.com
Thu, 23 Jan 2003 16:45:01 +0000


Fred L. Drake, Jr. wrote:
> Chris Withers writes:
>  > Would maybe a negative port number be better?
> 
> No; an invalid port number would be caught by the schema checker,
> which is not what's desired here at all.

Hmmm... thi is still a pretty ropey test then.

Either the suggested "check for a free port" as commented in the test, or 
perpahs monkey-patching part of python's socket library (just for this test!) 
would be better solutions?

cheers,

Chris