Issue #20226: Added tests for new features and regressions.

This commit is contained in:
Larry Hastings 2014-01-16 14:15:03 -08:00
parent 2a727916c5
commit 1abd708681
2 changed files with 20 additions and 0 deletions

View file

@ -689,6 +689,11 @@ class TestDescriptions(unittest.TestCase):
self.assertIsNone(pydoc.locate(name))
self.assertRaises(ImportError, pydoc.render_doc, name)
# test producing signatures from builtins
stat_sig = pydoc.render_doc(os.stat)
self.assertEqual(pydoc.plain(stat_sig).splitlines()[2],
'stat(path, *, dir_fd=None, follow_symlinks=True)')
@unittest.skipUnless(threading, 'Threading required for this test.')
class PydocServerTest(unittest.TestCase):