[Python-checkins] r55197 - svn:log

Fred L. Drake, Jr. fdrake at acm.org
Wed May 9 06:27:47 CEST 2007


On Wednesday 09 May 2007, collin.winter wrote:
 > If the call to requires() doesn't precede the filesystem check, we get the
 > following situation: 1. ./python Lib/test/regrtest.py test_foo # test
 > needs urlfetch, not enabled, so skipped 2. ./python Lib/test/regrtest.py
 > -u urlfetch test_foo # test runs 3. ./python Lib/test/regrtest.py test_foo
 > # test runs (!)
 >
 > By moving the call to requires() *before* the filesystem check, the fact
 > that fetched files are cached on the local disk becomes an implementation
 > detail, rather than a semantics-changing point of note.

Is this the intent of the requirement?  Or is the intent to protect the actual 
use of the network to perform the fetch?

I think I understand your motivation, but it seems more important to protect 
against unintentional use of the network than to avoid running the tests.  
Running the tests when the needed resource is available seems like a good 
thing.


  -Fred

-- 
Fred L. Drake, Jr.   <fdrake at acm.org>


More information about the Python-checkins mailing list