diff options
author | Larry Hastings <larry@hastings.org> | 2014-01-16 22:15:03 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2014-01-16 22:15:03 (GMT) |
commit | 1abd708681d9425b113366ac3f3d734c2904b250 (patch) | |
tree | 1b508617aaac737586b71ab8102367721d707a3f /Lib | |
parent | 2a727916c598c576507e3a7447fc54cc0e01d4a5 (diff) | |
download | cpython-1abd708681d9425b113366ac3f3d734c2904b250.zip cpython-1abd708681d9425b113366ac3f3d734c2904b250.tar.gz cpython-1abd708681d9425b113366ac3f3d734c2904b250.tar.bz2 |
Issue #20226: Added tests for new features and regressions.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_pydoc.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 1025f5a..43548af 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -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): |