[Python-checkins] r76014 - in python/branches/release26-maint: Lib/test/test_multibytecodec_support.py
antoine.pitrou
python-checkins at python.org
Sun Nov 1 17:17:06 CET 2009
Author: antoine.pitrou
Date: Sun Nov 1 17:17:06 2009
New Revision: 76014
Log:
(neither to 2.6)
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.
........
Modified:
python/branches/release26-maint/ (props changed)
python/branches/release26-maint/Lib/test/test_multibytecodec_support.py
Modified: python/branches/release26-maint/Lib/test/test_multibytecodec_support.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_multibytecodec_support.py (original)
+++ python/branches/release26-maint/Lib/test/test_multibytecodec_support.py Sun Nov 1 17:17:06 2009
@@ -266,7 +266,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)
More information about the Python-checkins
mailing list