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

Skip to content

Commit 5de3278

Browse files
author
Stefan Krah
committed
Fix test failures (--without-doc-strings).
1 parent bbf18be commit 5de3278

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_pydoc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from test.support import (
2222
TESTFN, rmtree,
2323
reap_children, reap_threads, captured_output, captured_stdout,
24-
captured_stderr, unlink
24+
captured_stderr, unlink, requires_docstrings
2525
)
2626
from test import pydoc_mod
2727

@@ -689,6 +689,8 @@ def test_builtin(self):
689689
self.assertIsNone(pydoc.locate(name))
690690
self.assertRaises(ImportError, pydoc.render_doc, name)
691691

692+
@requires_docstrings
693+
def test_builtin_signatures(self):
692694
# test producing signatures from builtins
693695
stat_sig = pydoc.render_doc(os.stat)
694696
self.assertEqual(pydoc.plain(stat_sig).splitlines()[2],

0 commit comments

Comments
 (0)