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
dbd2d256
Kaydet (Commit)
dbd2d256
authored
Mar 25, 2002
tarafından
Walter Dörwald
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add tests for the iterkeys, itervalues and iteritems
methods in dict-proxy objects.
üst
e990c79f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
test_descr.py
Lib/test/test_descr.py
+29
-0
No files found.
Lib/test/test_descr.py
Dosyayı görüntüle @
dbd2d256
...
...
@@ -2835,6 +2835,32 @@ def modules():
m
.
foo
=
1
vereq
(
m
.
__dict__
,
{
"foo"
:
1
})
def
dictproxyiterkeys
():
class
C
(
object
):
def
meth
(
self
):
pass
if
verbose
:
print
"Testing dict-proxy iterkeys..."
keys
=
[
key
for
key
in
C
.
__dict__
.
iterkeys
()
]
keys
.
sort
()
vereq
(
keys
,
[
'__dict__'
,
'__doc__'
,
'__module__'
,
'__weakref__'
,
'meth'
])
def
dictproxyitervalues
():
class
C
(
object
):
def
meth
(
self
):
pass
if
verbose
:
print
"Testing dict-proxy itervalues..."
values
=
[
values
for
values
in
C
.
__dict__
.
itervalues
()
]
vereq
(
len
(
values
),
5
)
def
dictproxyiteritems
():
class
C
(
object
):
def
meth
(
self
):
pass
if
verbose
:
print
"Testing dict-proxy iteritems..."
keys
=
[
key
for
(
key
,
value
)
in
C
.
__dict__
.
iteritems
()
]
keys
.
sort
()
vereq
(
keys
,
[
'__dict__'
,
'__doc__'
,
'__module__'
,
'__weakref__'
,
'meth'
])
def
test_main
():
class_docstrings
()
lists
()
...
...
@@ -2891,6 +2917,9 @@ def test_main():
strops
()
deepcopyrecursive
()
modules
()
dictproxyiterkeys
()
dictproxyitervalues
()
dictproxyiteritems
()
pickleslots
()
if
verbose
:
print
"All OK"
...
...
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