Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_multibytecodec_support.py @ 45714:c830616bd2fc
Skip tests if the file mapping file cannot be fetched.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 08 Mar 2008 11:59:08 +0000 |
| parents | 7dd2c1746267 |
| children | 7296a2fb4786 |
line wrap: on
line diff
--- a/Lib/test/test_multibytecodec_support.py Sat Mar 08 11:24:24 2008 +0000 +++ b/Lib/test/test_multibytecodec_support.py Sat Mar 08 11:59:08 2008 +0000 @@ -276,7 +276,10 @@ 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)
