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
94919a44
Commit
94919a44
authored
Jun 20, 2014
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test_pydoc failure introduced by e89c39125892. Patch by Berker Peksag.
parent
98fbdd68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Lib/test/test_pydoc.py
Lib/test/test_pydoc.py
+4
-2
No files found.
Lib/test/test_pydoc.py
View file @
94919a44
...
...
@@ -14,8 +14,8 @@ import types
import
test.test_support
from
collections
import
namedtuple
from
test.script_helper
import
assert_python_ok
from
test.test_support
import
(
TESTFN
,
rmtree
,
reap_children
,
captured_stdout
,
captured_stderr
)
from
test.test_support
import
(
TESTFN
,
rmtree
,
reap_children
,
captured_stdout
,
captured_stderr
,
requires_docstrings
)
from
test
import
pydoc_mod
...
...
@@ -300,6 +300,7 @@ class PydocBaseTest(unittest.TestCase):
class
PydocDocTest
(
unittest
.
TestCase
):
@
requires_docstrings
@
unittest
.
skipIf
(
sys
.
flags
.
optimize
>=
2
,
"Docstrings are omitted with -O2 and above"
)
def
test_html_doc
(
self
):
...
...
@@ -317,6 +318,7 @@ class PydocDocTest(unittest.TestCase):
print_diffs
(
expected_html
,
result
)
self
.
fail
(
"outputs are not equal, see diff above"
)
@
requires_docstrings
@
unittest
.
skipIf
(
sys
.
flags
.
optimize
>=
2
,
"Docstrings are omitted with -O2 and above"
)
def
test_text_doc
(
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