Fix test_pydoc failure introduced by e89c39125892. Patch by Berker Peksag.

This commit is contained in:
Charles-François Natali 2014-06-20 22:57:19 +01:00
parent 98fbdd6829
commit 94919a44a2
1 changed files with 4 additions and 2 deletions

View File

@ -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):