summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-11-01 16:10:47 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-11-01 16:10:47 (GMT)
commit235d942391bf2e5ada79e9f415a754c292c825bf (patch)
tree37f733d81584745abd6a2593936eabd2530abf81
parente50efaad9f5b17c849ec81eb7c5ae777c887ebb2 (diff)
downloadcpython-235d942391bf2e5ada79e9f415a754c292c825bf.zip
cpython-235d942391bf2e5ada79e9f415a754c292c825bf.tar.gz
cpython-235d942391bf2e5ada79e9f415a754c292c825bf.tar.bz2
Hum, test skipping when the URL isn't reachable hadn't been applied to trunk.
-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 6055764..cf7f288 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)