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
b0664c7d
Commit
b0664c7d
authored
Mar 01, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed pydoc tests when run with -OO.
parent
3128104f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Lib/test/test_pydoc.py
Lib/test/test_pydoc.py
+2
-0
No files found.
Lib/test/test_pydoc.py
View file @
b0664c7d
...
@@ -399,6 +399,8 @@ foo = 1
...
@@ -399,6 +399,8 @@ foo = 1
synopsis
=
pydoc
.
synopsis
(
init_path
,
{})
synopsis
=
pydoc
.
synopsis
(
init_path
,
{})
self
.
assertEqual
(
synopsis
,
'my doc'
)
self
.
assertEqual
(
synopsis
,
'my doc'
)
@
unittest
.
skipIf
(
sys
.
flags
.
optimize
>=
2
,
'Docstrings are omitted with -OO and above'
)
def
test_synopsis_sourceless_empty_doc
(
self
):
def
test_synopsis_sourceless_empty_doc
(
self
):
with
test
.
test_support
.
temp_cwd
()
as
test_dir
:
with
test
.
test_support
.
temp_cwd
()
as
test_dir
:
init_path
=
os
.
path
.
join
(
test_dir
,
'foomod42.py'
)
init_path
=
os
.
path
.
join
(
test_dir
,
'foomod42.py'
)
...
...
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