Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f7745294
Commit
f7745294
authored
Mar 10, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test data to 4.1; disable PRI #29 for now.
parent
a54dbef2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
Lib/test/test_normalization.py
Lib/test/test_normalization.py
+15
-4
No files found.
Lib/test/test_normalization.py
View file @
f7745294
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment