mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #20226: Added tests for new features and regressions.
This commit is contained in:
parent
2a727916c5
commit
1abd708681
2 changed files with 20 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue