File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Types and members
2828-----------------
2929
3030The :func: `getmembers ` function retrieves the members of an object such as a
31- class or module. The sixteen functions whose names begin with "is" are mainly
31+ class or module. The functions whose names begin with "is" are mainly
3232provided as convenient choices for the second argument to :func: `getmembers `.
3333They also help you determine when you can expect to find the following special
3434attributes:
Original file line number Diff line number Diff line change @@ -91,14 +91,6 @@ def gen_coroutine_function_example(self):
9191
9292
9393class TestPredicates (IsTestBase ):
94- def test_eightteen (self ):
95- count = len ([x for x in dir (inspect ) if x .startswith ('is' )])
96- # This test is here for remember you to update Doc/library/inspect.rst
97- # which claims there are 18 such functions
98- expected = 18
99- err_msg = "There are %d (not %d) is* functions" % (count , expected )
100- self .assertEqual (count , expected , err_msg )
101-
10294
10395 def test_excluding_predicates (self ):
10496 global tb
You can’t perform that action at this time.
0 commit comments