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
145dff85
Commit
145dff85
authored
Feb 01, 2014
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inspect.tests: Fix tests to work on python built with '--without-doc-strings' #20471
parent
8c561b52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Lib/test/test_inspect.py
Lib/test/test_inspect.py
+3
-0
No files found.
Lib/test/test_inspect.py
View file @
145dff85
...
...
@@ -2193,6 +2193,9 @@ class TestSignatureObject(unittest.TestCase):
(
'bar'
,
2
,
...,
"keyword_only"
)),
...))
@
unittest
.
skipIf
(
MISSING_C_DOCSTRINGS
,
"Signature information for builtins requires docstrings"
)
def
test_signature_on_class_without_init
(
self
):
# Test classes without user-defined __init__ or __new__
class
C
:
pass
self
.
assertEqual
(
str
(
inspect
.
signature
(
C
)),
'()'
)
...
...
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