Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
59a3b676
Commit
59a3b676
authored
Jun 30, 2015
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24541: Drop test_inspect.test_eightteen unittest; update docs
Suggested by Martin Panter.
parent
22f68d5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
Doc/library/inspect.rst
Doc/library/inspect.rst
+1
-1
Lib/test/test_inspect.py
Lib/test/test_inspect.py
+0
-8
No files found.
Doc/library/inspect.rst
View file @
59a3b676
...
...
@@ -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:
...
...
Lib/test/test_inspect.py
View file @
59a3b676
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment