Commit dcbeb0ee authored by Martin v. Löwis's avatar Martin v. Löwis

Skip tests if the file mapping file cannot be fetched.

parent 8707f397
......@@ -276,7 +276,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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment