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
67e83886
Kaydet (Commit)
67e83886
authored
May 05, 2007
tarafından
Walter Dörwald
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test_unicode.py passes again 9except for problems
with the idna codec.
üst
acaa5a16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
+2
-17
string_tests.py
Lib/test/string_tests.py
+2
-17
test_unicode.py
Lib/test/test_unicode.py
+0
-0
No files found.
Lib/test/string_tests.py
Dosyayı görüntüle @
67e83886
...
...
@@ -642,17 +642,6 @@ class CommonTest(BaseTest):
self
.
checkequal
(
'xyzzyhello'
,
'xyzzyhelloxyzzy'
,
'rstrip'
,
'xyz'
)
self
.
checkequal
(
'hello'
,
'hello'
,
'strip'
,
'xyz'
)
# strip/lstrip/rstrip with unicode arg
if
test_support
.
have_unicode
:
self
.
checkequal
(
str
(
'hello'
,
'ascii'
),
'xyzzyhelloxyzzy'
,
'strip'
,
str
(
'xyz'
,
'ascii'
))
self
.
checkequal
(
str
(
'helloxyzzy'
,
'ascii'
),
'xyzzyhelloxyzzy'
,
'lstrip'
,
str
(
'xyz'
,
'ascii'
))
self
.
checkequal
(
str
(
'xyzzyhello'
,
'ascii'
),
'xyzzyhelloxyzzy'
,
'rstrip'
,
str
(
'xyz'
,
'ascii'
))
self
.
checkequal
(
str
(
'hello'
,
'ascii'
),
'hello'
,
'strip'
,
str
(
'xyz'
,
'ascii'
))
self
.
checkraises
(
TypeError
,
'hello'
,
'strip'
,
42
,
42
)
self
.
checkraises
(
TypeError
,
'hello'
,
'lstrip'
,
42
,
42
)
self
.
checkraises
(
TypeError
,
'hello'
,
'rstrip'
,
42
,
42
)
...
...
@@ -956,12 +945,8 @@ class MixinStrUnicodeUserStringTest:
self
.
checkequal
(
'w x y z'
,
' '
,
'join'
,
Sequence
())
self
.
checkequal
(
'abc'
,
'a'
,
'join'
,
(
'abc'
,))
self
.
checkequal
(
'z'
,
'a'
,
'join'
,
UserList
([
'z'
]))
if
test_support
.
have_unicode
:
self
.
checkequal
(
str
(
'a.b.c'
),
str
(
'.'
),
'join'
,
[
'a'
,
'b'
,
'c'
])
self
.
checkequal
(
str
(
'a.b.c'
),
'.'
,
'join'
,
[
str
(
'a'
),
'b'
,
'c'
])
self
.
checkequal
(
str
(
'a.b.c'
),
'.'
,
'join'
,
[
'a'
,
str
(
'b'
),
'c'
])
self
.
checkequal
(
str
(
'a.b.c'
),
'.'
,
'join'
,
[
'a'
,
'b'
,
str
(
'c'
)])
self
.
checkraises
(
TypeError
,
'.'
,
'join'
,
[
'a'
,
str
(
'b'
),
3
])
self
.
checkequal
(
'a.b.c'
,
'.'
,
'join'
,
[
'a'
,
'b'
,
'c'
])
self
.
checkraises
(
TypeError
,
'.'
,
'join'
,
[
'a'
,
'b'
,
3
])
for
i
in
[
5
,
25
,
125
]:
self
.
checkequal
((((
'a'
*
i
)
+
'-'
)
*
i
)[:
-
1
],
'-'
,
'join'
,
[
'a'
*
i
]
*
i
)
...
...
Lib/test/test_unicode.py
Dosyayı görüntüle @
67e83886
This diff is collapsed.
Click to expand it.
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