summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_multibytecodec_support.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-03-08 11:59:08 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-03-08 11:59:08 (GMT)
commit0f95ba93418f401441ce4c4e2bfc580306ee47d4 (patch)
treee8c017c2547add9ef0d8411dbe7317eb9a9d5a7d /Lib/test/test_multibytecodec_support.py
parent071ef771dc61b3b354a16d15ad8c6bbab130f96f (diff)
downloadcpython-0f95ba93418f401441ce4c4e2bfc580306ee47d4.zip
cpython-0f95ba93418f401441ce4c4e2bfc580306ee47d4.tar.gz
cpython-0f95ba93418f401441ce4c4e2bfc580306ee47d4.tar.bz2
Skip tests if the file mapping file cannot be fetched.
Diffstat (limited to 'Lib/test/test_multibytecodec_support.py')
-rw-r--r--Lib/test/test_multibytecodec_support.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_multibytecodec_support.py b/Lib/test/test_multibytecodec_support.py
index 42df9d7..48e9089 100644
--- a/Lib/test/test_multibytecodec_support.py
+++ b/Lib/test/test_multibytecodec_support.py
@@ -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)