Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d7ee47

Browse files
author
Stefan Krah
committed
Merge 3.3.
2 parents c4a10f5 + fb93190 commit 2d7ee47

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_pydoc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ class PydocDocTest(unittest.TestCase):
256256
"Docstrings are omitted with -O2 and above")
257257
@unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
258258
'trace function introduces __locals__ unexpectedly')
259+
@test.support.requires_docstrings
259260
def test_html_doc(self):
260261
result, doc_loc = get_pydoc_html(pydoc_mod)
261262
mod_file = inspect.getabsfile(pydoc_mod)
@@ -273,6 +274,7 @@ def test_html_doc(self):
273274
"Docstrings are omitted with -O2 and above")
274275
@unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
275276
'trace function introduces __locals__ unexpectedly')
277+
@test.support.requires_docstrings
276278
def test_text_doc(self):
277279
result, doc_loc = get_pydoc_text(pydoc_mod)
278280
expected_text = expected_text_pattern % \
@@ -327,6 +329,7 @@ def test_stripid(self):
327329
'Docstrings are omitted with -O2 and above')
328330
@unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
329331
'trace function introduces __locals__ unexpectedly')
332+
@test.support.requires_docstrings
330333
def test_help_output_redirect(self):
331334
# issue 940286, if output is set in Helper, then all output from
332335
# Helper.help should be redirected
@@ -496,6 +499,7 @@ def test_content_type_err(self):
496499
self.assertRaises(TypeError, f, 'A', '')
497500
self.assertRaises(TypeError, f, 'B', 'foobar')
498501

502+
@test.support.requires_docstrings
499503
def test_url_requests(self):
500504
# Test for the correct title in the html pages returned.
501505
# This tests the different parts of the URL handler without

0 commit comments

Comments
 (0)