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
206cd1c2
Kaydet (Commit)
206cd1c2
authored
13 years ago
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix uglyNamingConvention
üst
a977acc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
test_super.py
Lib/test/test_super.py
+7
-7
No files found.
Lib/test/test_super.py
Dosyayı görüntüle @
206cd1c2
...
...
@@ -44,33 +44,33 @@ class G(A):
class
TestSuper
(
unittest
.
TestCase
):
def
test
BasicsW
orking
(
self
):
def
test
_basics_w
orking
(
self
):
self
.
assertEqual
(
D
()
.
f
(),
'ABCD'
)
def
test
ClassGetattrW
orking
(
self
):
def
test
_class_getattr_w
orking
(
self
):
self
.
assertEqual
(
D
.
f
(
D
()),
'ABCD'
)
def
test
SubclassNoOverrideW
orking
(
self
):
def
test
_subclass_no_override_w
orking
(
self
):
self
.
assertEqual
(
E
()
.
f
(),
'ABCD'
)
self
.
assertEqual
(
E
.
f
(
E
()),
'ABCD'
)
def
test
UnboundMethodTransferW
orking
(
self
):
def
test
_unbound_method_transfer_w
orking
(
self
):
self
.
assertEqual
(
F
()
.
f
(),
'ABCD'
)
self
.
assertEqual
(
F
.
f
(
F
()),
'ABCD'
)
def
test
ClassMethodsStillW
orking
(
self
):
def
test
_class_methods_still_w
orking
(
self
):
self
.
assertEqual
(
A
.
cm
(),
(
A
,
'A'
))
self
.
assertEqual
(
A
()
.
cm
(),
(
A
,
'A'
))
self
.
assertEqual
(
G
.
cm
(),
(
G
,
'A'
))
self
.
assertEqual
(
G
()
.
cm
(),
(
G
,
'A'
))
def
test
SuperInClassMethodsW
orking
(
self
):
def
test
_super_in_class_methods_w
orking
(
self
):
d
=
D
()
self
.
assertEqual
(
d
.
cm
(),
(
d
,
(
D
,
(
D
,
(
D
,
'A'
),
'B'
),
'C'
),
'D'
))
e
=
E
()
self
.
assertEqual
(
e
.
cm
(),
(
e
,
(
E
,
(
E
,
(
E
,
'A'
),
'B'
),
'C'
),
'D'
))
def
test
SuperWithC
losure
(
self
):
def
test
_super_with_c
losure
(
self
):
# Issue4360: super() did not work in a function that
# contains a closure
class
E
(
A
):
...
...
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