From: Yury Selivanov Date: Wed, 1 Jul 2015 02:06:42 +0000 (-0400) Subject: Issue #24541: Drop test_inspect.test_eightteen unittest; update docs X-Git-Tag: v3.5.0b3~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59a3b6764c504b4816b83be97d05f365f68d7dea;p=thirdparty%2FPython%2Fcpython.git Issue #24541: Drop test_inspect.test_eightteen unittest; update docs Suggested by Martin Panter. --- diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 8bce5223f8b6..24d106dae46d 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -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: diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index 1bf45763c8d4..ab22c7d67754 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -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