mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Hum, test skipping when the URL isn't reachable hadn't been applied to trunk.
This commit is contained in:
parent
e50efaad9f
commit
235d942391
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue