]> granicus.if.org Git - python/commitdiff
Hum, test skipping when the URL isn't reachable hadn't been applied to trunk.
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 1 Nov 2009 16:10:47 +0000 (16:10 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 1 Nov 2009 16:10:47 +0000 (16:10 +0000)
Lib/test/test_multibytecodec_support.py

index 60557640be3f5745c2f8e45e0948d4cbda33d78c..cf7f288a285a445827eb26331d6f3dfa1825b977 100644 (file)
@@ -266,7 +266,10 @@ class TestBase_Mapping(unittest.TestCase):
 
     def __init__(self, *args, **kw):
         unittest.TestCase.__init__(self, *args, **kw)
-        self.open_mapping_file() # test it to report the error early
+        try:
+            self.open_mapping_file() # test it to report the error early
+        except IOError:
+            self.skipTest("Could not retrieve "+self.mapfileurl)
 
     def open_mapping_file(self):
         return test_support.open_urlresource(self.mapfileurl)