Commit d7e9ed46 authored by Jim Fulton's avatar Jim Fulton

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

windows, urllib raises an invalid ioerror.
parent 50910971
......@@ -400,10 +400,10 @@ False
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.
......
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