summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_normalization.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-11-01 21:34:42 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-11-01 21:34:42 (GMT)
commit1ccb66a5bd7360f9c7f123f6828a27aa244fd489 (patch)
treeacfaa132eb9652d8fa4c3647ebf2e5f8cfd5b751 /Lib/test/test_normalization.py
parent5662924453bdf4793f869427b5369281077a3abd (diff)
downloadcpython-1ccb66a5bd7360f9c7f123f6828a27aa244fd489.zip
cpython-1ccb66a5bd7360f9c7f123f6828a27aa244fd489.tar.gz
cpython-1ccb66a5bd7360f9c7f123f6828a27aa244fd489.tar.bz2
Merged revisions 76033 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76033 | antoine.pitrou | 2009-11-01 22:26:14 +0100 (dim., 01 nov. 2009) | 3 lines test_normalization should skip and not crash when the resource isn't available ........
Diffstat (limited to 'Lib/test/test_normalization.py')
-rw-r--r--Lib/test/test_normalization.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_normalization.py b/Lib/test/test_normalization.py
index e9056cd..e4da01f 100644
--- a/Lib/test/test_normalization.py
+++ b/Lib/test/test_normalization.py
@@ -1,4 +1,4 @@
-from test.test_support import run_unittest, open_urlresource
+from test.test_support import run_unittest, open_urlresource, TestSkipped
import unittest
import sys
@@ -96,7 +96,10 @@ class NormalizationTest(unittest.TestCase):
def test_main():
# Hit the exception early
- open_urlresource(TESTDATAURL)
+ try:
+ open_urlresource(TESTDATAURL)
+ except IOError:
+ raise TestSkipped("could not retrieve " + TESTDATAURL)
run_unittest(NormalizationTest)
if __name__ == "__main__":