Commit 4d2db646 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 d7e9ed46
......@@ -58,10 +58,10 @@ We are responsible for cleaning up temporary files behind us:
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:
......
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