[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:18:51 EDT 2009


Log message for revision 103357:
  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:15:28 UTC (rev 103356)
+++ zc.buildout/trunk/src/zc/buildout/download.txt	2009-08-28 22:18:51 UTC (rev 103357)
@@ -400,10 +400,10 @@
 If the file cannot be served, the cached copy will be used:
 
 >>> remove(server_data, 'foo.txt')
->>> Download()(server_url+'foo.txt')
-Traceback (most recent call last):
-IOError: ('http error', 404, 'Not Found',
-          <httplib.HTTPMessage instance at 0xa35d36c>)
+>>> try: Download()(server_url+'foo.txt') # doctest: +ELLIPSIS
+... except: print 'download error'
+... else: print 'woops'
+download error
 >>> path, is_temp = download(server_url+'foo.txt')
 >>> cat(path)
 This is a foo text.



More information about the checkins mailing list