]> granicus.if.org Git - python/commitdiff
Fix test on PPC64 buildbot. It raised an IOError (really an URLError which
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 11 Jun 2006 20:46:46 +0000 (20:46 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 11 Jun 2006 20:46:46 +0000 (20:46 +0000)
derives from an IOError).  That seems valid.  Env Error includes both OSError
and IOError, so this seems like a reasonable fix.

Lib/test/test_urllib2net.py

index 03b883b87d2e0fdb0a8be6fea0fb965cc23f5af4..00cf202b04fc79e05a97b44ee270a254aca856cd 100644 (file)
@@ -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: