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
4e0df17b
Kaydet (Commit)
4e0df17b
authored
Nis 24, 2014
tarafından
Zachary Ware
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21346: Fix typos in test_itertools. Patch by Brian Kearns.
üst
10c7781b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_itertools.py
Lib/test/test_itertools.py
+2
-2
No files found.
Lib/test/test_itertools.py
Dosyayı görüntüle @
4e0df17b
...
@@ -274,7 +274,7 @@ class TestBasicOps(unittest.TestCase):
...
@@ -274,7 +274,7 @@ class TestBasicOps(unittest.TestCase):
self
.
assertEqual
(
result
,
list
(
permutations
(
values
,
None
)))
# test r as None
self
.
assertEqual
(
result
,
list
(
permutations
(
values
,
None
)))
# test r as None
self
.
assertEqual
(
result
,
list
(
permutations
(
values
)))
# test default r
self
.
assertEqual
(
result
,
list
(
permutations
(
values
)))
# test default r
@test_support.impl_detail
(
"tuple re
suse is CPython specific
"
)
@test_support.impl_detail
(
"tuple re
use is specific to CPython
"
)
def
test_permutations_tuple_reuse
(
self
):
def
test_permutations_tuple_reuse
(
self
):
self
.
assertEqual
(
len
(
set
(
map
(
id
,
permutations
(
'abcde'
,
3
)))),
1
)
self
.
assertEqual
(
len
(
set
(
map
(
id
,
permutations
(
'abcde'
,
3
)))),
1
)
self
.
assertNotEqual
(
len
(
set
(
map
(
id
,
list
(
permutations
(
'abcde'
,
3
))))),
1
)
self
.
assertNotEqual
(
len
(
set
(
map
(
id
,
list
(
permutations
(
'abcde'
,
3
))))),
1
)
...
@@ -536,7 +536,7 @@ class TestBasicOps(unittest.TestCase):
...
@@ -536,7 +536,7 @@ class TestBasicOps(unittest.TestCase):
zip
(
'abc'
,
'def'
))
zip
(
'abc'
,
'def'
))
@test_support.impl_detail
(
"tuple reuse is specific to CPython"
)
@test_support.impl_detail
(
"tuple reuse is specific to CPython"
)
def
test_izip_tuple_re
s
use
(
self
):
def
test_izip_tuple_reuse
(
self
):
ids
=
map
(
id
,
izip
(
'abc'
,
'def'
))
ids
=
map
(
id
,
izip
(
'abc'
,
'def'
))
self
.
assertEqual
(
min
(
ids
),
max
(
ids
))
self
.
assertEqual
(
min
(
ids
),
max
(
ids
))
ids
=
map
(
id
,
list
(
izip
(
'abc'
,
'def'
)))
ids
=
map
(
id
,
list
(
izip
(
'abc'
,
'def'
)))
...
...
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