[Checkins] SVN: zc.buildout/trunk/src/zc/buildout/download.txt Hide some irrelevent error information to work around the fact that on
Jim Fulton
jim at zope.com
Fri Aug 28 18:22:04 EDT 2009
Log message for revision 103359:
Hide some irrelevent error information to work around the fact that on
windows, urllib raises an invalid ioerror.
Changed:
U zc.buildout/trunk/src/zc/buildout/download.txt
-=-
Modified: zc.buildout/trunk/src/zc/buildout/download.txt
===================================================================
--- zc.buildout/trunk/src/zc/buildout/download.txt 2009-08-28 22:19:30 UTC (rev 103358)
+++ zc.buildout/trunk/src/zc/buildout/download.txt 2009-08-28 22:22:04 UTC (rev 103359)
@@ -58,10 +58,10 @@
When trying to access a file that doesn't exist, we'll get an exception:
->>> download(server_url+'not-there')
-Traceback (most recent call last):
-IOError: ('http error', 404, 'Not Found',
- <httplib.HTTPMessage instance at 0xa0ffd2c>)
+>>> try: download(server_url+'not-there') # doctest: +ELLIPSIS
+... except: print 'download error'
+... else: print 'woops'
+download error
Downloading a local file doesn't produce a temporary file but simply returns
the local file itself:
More information about the checkins
mailing list