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
4cb93917
Commit
4cb93917
authored
Jan 29, 2014
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inspect.test.getfullargspec: Add a unittest to ensure correct annotations
handling #17481
parent
d82eddcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Lib/test/test_inspect.py
Lib/test/test_inspect.py
+9
-0
No files found.
Lib/test/test_inspect.py
View file @
4cb93917
...
...
@@ -586,6 +586,15 @@ class TestClassesAndFunctions(unittest.TestCase):
self
.
assertFullArgSpecEquals
(
test
,
args_e
=
[
'spam'
],
formatted
=
'(spam)'
)
def
test_getfullargspec_signature_annos
(
self
):
def
test
(
a
:
'spam'
)
->
'ham'
:
pass
spec
=
inspect
.
getfullargspec
(
test
)
self
.
assertEqual
(
test
.
__annotations__
,
spec
.
annotations
)
def
test
():
pass
spec
=
inspect
.
getfullargspec
(
test
)
self
.
assertEqual
(
test
.
__annotations__
,
spec
.
annotations
)
@
unittest
.
skipIf
(
MISSING_C_DOCSTRINGS
,
"Signature information for builtins requires docstrings"
)
def
test_getfullargspec_builtin_methods
(
self
):
...
...
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