mirror of
https://github.com/python/cpython.git
synced 2025-08-16 06:40:56 +00:00
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 ........
This commit is contained in:
parent
5662924453
commit
1ccb66a5bd
1 changed files with 5 additions and 2 deletions
|
@ -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 unittest
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -96,7 +96,10 @@ class NormalizationTest(unittest.TestCase):
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
# Hit the exception early
|
# Hit the exception early
|
||||||
open_urlresource(TESTDATAURL)
|
try:
|
||||||
|
open_urlresource(TESTDATAURL)
|
||||||
|
except IOError:
|
||||||
|
raise TestSkipped("could not retrieve " + TESTDATAURL)
|
||||||
run_unittest(NormalizationTest)
|
run_unittest(NormalizationTest)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue