From: Antoine Pitrou Date: Sun, 1 Nov 2009 16:10:47 +0000 (+0000) Subject: Hum, test skipping when the URL isn't reachable hadn't been applied to trunk. X-Git-Tag: v2.7a1~174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=235d942391bf2e5ada79e9f415a754c292c825bf;p=python Hum, test skipping when the URL isn't reachable hadn't been applied to trunk. --- diff --git a/Lib/test/test_multibytecodec_support.py b/Lib/test/test_multibytecodec_support.py index 60557640be..cf7f288a28 100644 --- a/Lib/test/test_multibytecodec_support.py +++ b/Lib/test/test_multibytecodec_support.py @@ -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)