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
74b7e44d
Kaydet (Commit)
74b7e44d
authored
Haz 01, 2009
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #6150: Fix test_unicode on wide-unicode builds.
üst
79b13874
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
test_unicode.py
Lib/test/test_unicode.py
+7
-6
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_unicode.py
Dosyayı görüntüle @
74b7e44d
...
...
@@ -908,14 +908,15 @@ class UnicodeTest(
def
test_codecs_utf8
(
self
):
self
.
assertEqual
(
''
.
encode
(
'utf-8'
),
b
''
)
self
.
assertEqual
(
'
\u20ac
'
.
encode
(
'utf-8'
),
b
'
\xe2\x82\xac
'
)
self
.
assertEqual
(
'
\ud800\udc02
'
.
encode
(
'utf-8'
),
b
'
\xf0\x90\x80\x82
'
)
self
.
assertEqual
(
'
\ud84d\udc56
'
.
encode
(
'utf-8'
),
b
'
\xf0\xa3\x91\x96
'
)
if
sys
.
maxunicode
==
65535
:
self
.
assertEqual
(
'
\ud800\udc02
'
.
encode
(
'utf-8'
),
b
'
\xf0\x90\x80\x82
'
)
self
.
assertEqual
(
'
\ud84d\udc56
'
.
encode
(
'utf-8'
),
b
'
\xf0\xa3\x91\x96
'
)
self
.
assertEqual
(
'
\ud800
'
.
encode
(
'utf-8'
,
'surrogatepass'
),
b
'
\xed\xa0\x80
'
)
self
.
assertEqual
(
'
\udc00
'
.
encode
(
'utf-8'
,
'surrogatepass'
),
b
'
\xed\xb0\x80
'
)
self
.
assertEqual
(
(
'
\ud800\udc02
'
*
1000
)
.
encode
(
'utf-8'
,
'surrogatepass'
),
b
'
\xf0\x90\x80\x82
'
*
1000
)
if
sys
.
maxunicode
==
65535
:
self
.
assertEqual
(
(
'
\ud800\udc02
'
*
1000
)
.
encode
(
'utf-8'
),
b
'
\xf0\x90\x80\x82
'
*
1000
)
self
.
assertEqual
(
'
\u6b63\u78ba\u306b\u8a00\u3046\u3068\u7ffb\u8a33\u306f
'
'
\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u4e00
'
...
...
Misc/NEWS
Dosyayı görüntüle @
74b7e44d
...
...
@@ -18,6 +18,8 @@ Core and Builtins
Library
-------
- Issue #6150: Fix test_unicode on wide-unicode builds.
- Issue #6149: Fix initialization of WeakValueDictionary objects from non-empty
parameters.
...
...
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