]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(neither to 2.6)
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 1 Nov 2009 16:17:06 +0000 (16:17 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 1 Nov 2009 16:17:06 +0000 (16:17 +0000)
Merged revisions 76012 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76012 | antoine.pitrou | 2009-11-01 17:10:47 +0100 (dim., 01 nov. 2009) | 3 lines

  Hum, test skipping when the URL isn't reachable hadn't been applied to trunk.
........

Lib/test/test_multibytecodec_support.py

index 60557640be3f5745c2f8e45e0948d4cbda33d78c..feefa9733e65e783092301c4dd8dc50c891f47f1 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:
+            raise test_support.TestSkipped("Could not retrieve "+self.mapfileurl)
 
     def open_mapping_file(self):
         return test_support.open_urlresource(self.mapfileurl)