mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Merged revisions 76535 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76535 | antoine.pitrou | 2009-11-26 13:36:30 +0100 (jeu., 26 nov. 2009) | 3 lines When open_urlresource() fails, HTTPException is another possible error ........
This commit is contained in:
parent
3b713b01f6
commit
1a305fd141
2 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
from test.support import run_unittest, open_urlresource
|
||||
import unittest
|
||||
|
||||
from http.client import HTTPException
|
||||
import sys
|
||||
import os
|
||||
from unicodedata import normalize, unidata_version
|
||||
|
@ -45,7 +46,7 @@ class NormalizationTest(unittest.TestCase):
|
|||
# Hit the exception early
|
||||
try:
|
||||
open_urlresource(TESTDATAURL, encoding="utf-8")
|
||||
except IOError:
|
||||
except (IOError, HTTPException):
|
||||
self.skipTest("Could not retrieve " + TESTDATAURL)
|
||||
for line in open_urlresource(TESTDATAURL, encoding="utf-8"):
|
||||
if '#' in line:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue