Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59a3b67

Browse files
committed
Issue #24541: Drop test_inspect.test_eightteen unittest; update docs
Suggested by Martin Panter.
1 parent 22f68d5 commit 59a3b67

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

Doc/library/inspect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Types and members
2828
-----------------
2929

3030
The :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
3232
provided as convenient choices for the second argument to :func:`getmembers`.
3333
They also help you determine when you can expect to find the following special
3434
attributes:

Lib/test/test_inspect.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,6 @@ def gen_coroutine_function_example(self):
9191

9292

9393
class 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

0 commit comments

Comments
 (0)