~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Lib/test/test_normalization.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from test.test_support import run_unittest, open_urlresource
 
1
from test.test_support import run_unittest, open_urlresource, TestSkipped
2
2
import unittest
3
3
 
4
4
import sys
96
96
 
97
97
def test_main():
98
98
    # Hit the exception early
99
 
    open_urlresource(TESTDATAURL)
 
99
    try:
 
100
        open_urlresource(TESTDATAURL)
 
101
    except IOError:
 
102
        raise TestSkipped("could not retrieve " + TESTDATAURL)
100
103
    run_unittest(NormalizationTest)
101
104
 
102
105
if __name__ == "__main__":