summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_normalization.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-11-26 12:38:23 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-11-26 12:38:23 (GMT)
commit1a305fd141ebe4295d554d8b127ab982858a079e (patch)
tree870ad72f4d33a37888a49e28600b83c584d8c61a /Lib/test/test_normalization.py
parent3b713b01f637e10ad4353b272703a5144d017321 (diff)
downloadcpython-1a305fd141ebe4295d554d8b127ab982858a079e.zip
cpython-1a305fd141ebe4295d554d8b127ab982858a079e.tar.gz
cpython-1a305fd141ebe4295d554d8b127ab982858a079e.tar.bz2
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 ........
Diffstat (limited to 'Lib/test/test_normalization.py')
-rw-r--r--Lib/test/test_normalization.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_normalization.py b/Lib/test/test_normalization.py
index 6641554..19fe48d 100644
--- a/Lib/test/test_normalization.py
+++ b/Lib/test/test_normalization.py
@@ -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: