Commit 7f3042fb authored by jim's avatar jim

Hide some irrelevent error information to work around the fact that on

windows, urllib raises an invalid ioerror.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@103357 62d5b8a3-27da-0310-9561-8e5933582275
parent 50a7e5cf
...@@ -400,10 +400,10 @@ False ...@@ -400,10 +400,10 @@ False
If the file cannot be served, the cached copy will be used: If the file cannot be served, the cached copy will be used:
>>> remove(server_data, 'foo.txt') >>> remove(server_data, 'foo.txt')
>>> Download()(server_url+'foo.txt') >>> try: Download()(server_url+'foo.txt') # doctest: +ELLIPSIS
Traceback (most recent call last): ... except: print 'download error'
IOError: ('http error', 404, 'Not Found', ... else: print 'woops'
<httplib.HTTPMessage instance at 0xa35d36c>) download error
>>> path, is_temp = download(server_url+'foo.txt') >>> path, is_temp = download(server_url+'foo.txt')
>>> cat(path) >>> cat(path)
This is a foo text. This is a foo text.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment