]> granicus.if.org Git - python/commitdiff
Issue #24541: Drop test_inspect.test_eightteen unittest; update docs
authorYury Selivanov <yselivanov@sprymix.com>
Wed, 1 Jul 2015 02:06:42 +0000 (22:06 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Wed, 1 Jul 2015 02:06:42 +0000 (22:06 -0400)
Suggested by Martin Panter.

Doc/library/inspect.rst
Lib/test/test_inspect.py

index 8bce5223f8b65d3228701fb34d12f6a284760fda..24d106dae46ddef3e24d654fad0c61f201904177 100644 (file)
@@ -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:
index 1bf45763c8d4c97091879cd8d0c726494fc0d7ec..ab22c7d677544a8e93dcff92ac3679b563c19b57 100644 (file)
@@ -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