diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-30 22:06:55 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-30 22:06:55 -0400 |
commit | d18f9854b4d7b9796ccc2302f14af68c6019b3c9 (patch) | |
tree | 4de42072344567e8f5ebc2bbe09b3c664a61dc79 | |
parent | 50d5516dce1a963a3708404db4801807fe7296d8 (diff) | |
parent | 59a3b6764c504b4816b83be97d05f365f68d7dea (diff) | |
download | cpython-git-d18f9854b4d7b9796ccc2302f14af68c6019b3c9.tar.gz |
Merge 3.5
-rw-r--r-- | Doc/library/inspect.rst | 2 | ||||
-rw-r--r-- | Lib/test/test_inspect.py | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 8bce5223f8..24d106dae4 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 1bf45763c8..ab22c7d677 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 |