[Python-checkins] r46870 - python/trunk/Lib/test/test_urllib2net.py
neal.norwitz
python-checkins at python.org
Sun Jun 11 22:46:46 CEST 2006
Author: neal.norwitz
Date: Sun Jun 11 22:46:46 2006
New Revision: 46870
Modified:
python/trunk/Lib/test/test_urllib2net.py
Log:
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.
Modified: python/trunk/Lib/test/test_urllib2net.py
==============================================================================
--- python/trunk/Lib/test/test_urllib2net.py (original)
+++ python/trunk/Lib/test/test_urllib2net.py Sun Jun 11 22:46:46 2006
@@ -176,7 +176,7 @@
# 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:
More information about the Python-checkins
mailing list