mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Fix test on PPC64 buildbot. It raised an IOError (really an URLError which
derives from an IOError). That seems valid. Env Error includes both OSError and IOError, so this seems like a reasonable fix.
This commit is contained in:
parent
f054aeb2a1
commit
896c1ea15e
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ class OtherNetworkTests(unittest.TestCase):
|
|||
|
||||
# XXX bug, should raise URLError
|
||||
#('file://nonsensename/etc/passwd', None, urllib2.URLError)
|
||||
('file://nonsensename/etc/passwd', None, (OSError, socket.error))
|
||||
('file://nonsensename/etc/passwd', None, (EnvironmentError, socket.error))
|
||||
]
|
||||
self._test_urls(urls, self._extra_handlers())
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue