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
c4536a1d
Kaydet (Commit)
c4536a1d
authored
Eyl 04, 2004
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Teach a test about the different kinds of functions.
üst
2a72f195
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_pyclbr.py
Lib/test/test_pyclbr.py
+2
-2
No files found.
Lib/test/test_pyclbr.py
Dosyayı görüntüle @
c4536a1d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
'''
'''
from
test.test_support
import
run_unittest
from
test.test_support
import
run_unittest
import
unittest
,
sys
import
unittest
,
sys
from
types
import
ClassType
,
FunctionType
,
MethodType
from
types
import
ClassType
,
FunctionType
,
MethodType
,
BuiltinFunctionType
import
pyclbr
import
pyclbr
from
unittest
import
TestCase
from
unittest
import
TestCase
...
@@ -92,7 +92,7 @@ class PyclbrTest(TestCase):
...
@@ -92,7 +92,7 @@ class PyclbrTest(TestCase):
self
.
assertHasattr
(
module
,
name
,
ignore
)
self
.
assertHasattr
(
module
,
name
,
ignore
)
py_item
=
getattr
(
module
,
name
)
py_item
=
getattr
(
module
,
name
)
if
isinstance
(
value
,
pyclbr
.
Function
):
if
isinstance
(
value
,
pyclbr
.
Function
):
self
.
assert
Equals
(
type
(
py_item
),
FunctionType
)
self
.
assert
_
(
isinstance
(
py_item
,
(
FunctionType
,
BuiltinFunctionType
))
)
else
:
else
:
self
.
failUnless
(
isinstance
(
py_item
,
(
ClassType
,
type
)))
self
.
failUnless
(
isinstance
(
py_item
,
(
ClassType
,
type
)))
real_bases
=
[
base
.
__name__
for
base
in
py_item
.
__bases__
]
real_bases
=
[
base
.
__name__
for
base
in
py_item
.
__bases__
]
...
...
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