summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-11 20:46:46 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-11 20:46:46 +0000
commit896c1ea15e9ec67fd1b33998ba8daaf17528ba31 (patch)
tree013db37024596bfc3185280325cb9ac9d9f03070 /Lib/test
parentf054aeb2a1dadc752901f94852bea6242dec52bb (diff)
downloadcpython-git-896c1ea15e9ec67fd1b33998ba8daaf17528ba31.tar.gz
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.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_urllib2net.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
index 03b883b87d..00cf202b04 100644
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -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: