diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-03-10 11:59:47 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-03-10 11:59:47 (GMT) |
commit | 41962966056b4ba8a240574f174af212726bd9cd (patch) | |
tree | 367d39dd188aa488b9ed901fbbbbd68a8312c10b /Lib/test/test_normalization.py | |
parent | 0e2f9b2dfb3b9241e6427c8e196881cb348b6e72 (diff) | |
download | cpython-41962966056b4ba8a240574f174af212726bd9cd.zip cpython-41962966056b4ba8a240574f174af212726bd9cd.tar.gz cpython-41962966056b4ba8a240574f174af212726bd9cd.tar.bz2 |
Update test data to 4.1; disable PRI #29 for now.
Diffstat (limited to 'Lib/test/test_normalization.py')
-rw-r--r-- | Lib/test/test_normalization.py | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/Lib/test/test_normalization.py b/Lib/test/test_normalization.py index 7c86f75..55f1b8d 100644 --- a/Lib/test/test_normalization.py +++ b/Lib/test/test_normalization.py @@ -4,8 +4,8 @@ import sys import os from unicodedata import normalize -TESTDATAFILE = "NormalizationTest-3.2.0" + os.extsep + "txt" -TESTDATAURL = "http://www.unicode.org/Public/3.2-Update/" + TESTDATAFILE +TESTDATAFILE = "NormalizationTest" + os.extsep + "txt" +TESTDATAURL = "http://www.unicode.org/Public/4.1.0/ucd/" + TESTDATAFILE class RangeError: pass @@ -38,12 +38,23 @@ def test_main(): if not line: continue if line.startswith("@Part"): - part = line + part = line.split()[0] + continue + if part == "@Part3": + # XXX we don't support PRI #29 yet, so skip these tests for now continue try: c1,c2,c3,c4,c5 = [unistr(x) for x in line.split(';')[:-1]] except RangeError: - # Skip unsupported characters + # Skip unsupported characters; + # try atleast adding c1 if we are in part1 + if part == "@Part1": + try: + c1=unistr(line.split(';')[0]) + except RangeError: + pass + else: + part1_data[c1] = 1 continue if verbose: |