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
59a3b676
Kaydet (Commit)
59a3b676
authored
Tem 01, 2015
tarafından
Yury Selivanov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #24541: Drop test_inspect.test_eightteen unittest; update docs
Suggested by Martin Panter.
üst
22f68d5d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
inspect.rst
Doc/library/inspect.rst
+1
-1
test_inspect.py
Lib/test/test_inspect.py
+0
-8
No files found.
Doc/library/inspect.rst
Dosyayı görüntüle @
59a3b676
...
...
@@ -28,7 +28,7 @@ Types and members
-----------------
The :func:`getmembers` function retrieves the members of an object such as a
class or module. The
sixteen
functions whose names begin with "is" are mainly
class or module. The functions whose names begin with "is" are mainly
provided as convenient choices for the second argument to :func:`getmembers`.
They also help you determine when you can expect to find the following special
attributes:
...
...
Lib/test/test_inspect.py
Dosyayı görüntüle @
59a3b676
...
...
@@ -91,14 +91,6 @@ def gen_coroutine_function_example(self):
class
TestPredicates
(
IsTestBase
):
def
test_eightteen
(
self
):
count
=
len
([
x
for
x
in
dir
(
inspect
)
if
x
.
startswith
(
'is'
)])
# This test is here for remember you to update Doc/library/inspect.rst
# which claims there are 18 such functions
expected
=
18
err_msg
=
"There are
%
d (not
%
d) is* functions"
%
(
count
,
expected
)
self
.
assertEqual
(
count
,
expected
,
err_msg
)
def
test_excluding_predicates
(
self
):
global
tb
...
...
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