Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
41962966
Kaydet (Commit)
41962966
authored
Mar 10, 2006
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update test data to 4.1; disable PRI #29 for now.
üst
0e2f9b2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
test_normalization.py
Lib/test/test_normalization.py
+15
-4
No files found.
Lib/test/test_normalization.py
Dosyayı görüntüle @
41962966
...
@@ -4,8 +4,8 @@ import sys
...
@@ -4,8 +4,8 @@ import sys
import
os
import
os
from
unicodedata
import
normalize
from
unicodedata
import
normalize
TESTDATAFILE
=
"NormalizationTest
-3.2.0
"
+
os
.
extsep
+
"txt"
TESTDATAFILE
=
"NormalizationTest"
+
os
.
extsep
+
"txt"
TESTDATAURL
=
"http://www.unicode.org/Public/
3.2-Update
/"
+
TESTDATAFILE
TESTDATAURL
=
"http://www.unicode.org/Public/
4.1.0/ucd
/"
+
TESTDATAFILE
class
RangeError
:
class
RangeError
:
pass
pass
...
@@ -38,12 +38,23 @@ def test_main():
...
@@ -38,12 +38,23 @@ def test_main():
if
not
line
:
if
not
line
:
continue
continue
if
line
.
startswith
(
"@Part"
):
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
continue
try
:
try
:
c1
,
c2
,
c3
,
c4
,
c5
=
[
unistr
(
x
)
for
x
in
line
.
split
(
';'
)[:
-
1
]]
c1
,
c2
,
c3
,
c4
,
c5
=
[
unistr
(
x
)
for
x
in
line
.
split
(
';'
)[:
-
1
]]
except
RangeError
:
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
continue
if
verbose
:
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