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
1c02a440
Kaydet (Commit)
1c02a440
authored
Ock 12, 2011
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move this test to test_descr; it's not abc specific
üst
1efb8dc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
test_abc.py
Lib/test/test_abc.py
+0
-7
test_descr.py
Lib/test/test_descr.py
+7
-0
No files found.
Lib/test/test_abc.py
Dosyayı görüntüle @
1c02a440
...
...
@@ -98,13 +98,6 @@ class TestABC(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
F
)
# because bar is abstract now
self
.
assertTrue
(
isabstract
(
F
))
def
test_type_has_no_abstractmethods
(
self
):
# type pretends not to have __abstractmethods__.
self
.
assertRaises
(
AttributeError
,
getattr
,
type
,
"__abstractmethods__"
)
class
meta
(
type
):
pass
self
.
assertRaises
(
AttributeError
,
getattr
,
meta
,
"__abstractmethods__"
)
def
test_metaclass_abc
(
self
):
# Metaclasses can be ABCs, too.
class
A
(
metaclass
=
abc
.
ABCMeta
):
...
...
Lib/test/test_descr.py
Dosyayı görüntüle @
1c02a440
...
...
@@ -4273,6 +4273,13 @@ class DictProxyTests(unittest.TestCase):
dict_
=
{
k
:
v
for
k
,
v
in
self
.
C
.
__dict__
.
items
()}
self
.
assertEqual
(
repr
(
self
.
C
.
__dict__
),
'dict_proxy({!r})'
.
format
(
dict_
))
def
test_type_has_no_abstractmethods
(
self
):
# type pretends not to have __abstractmethods__.
self
.
assertRaises
(
AttributeError
,
getattr
,
type
,
"__abstractmethods__"
)
class
meta
(
type
):
pass
self
.
assertRaises
(
AttributeError
,
getattr
,
meta
,
"__abstractmethods__"
)
class
PTypesLongInitTest
(
unittest
.
TestCase
):
# This is in its own TestCase so that it can be run before any other tests.
...
...
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