mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
Issue #19703: Update pydoc to use the new importer APIs.
This commit is contained in:
parent
3192eac6cf
commit
3a62d14b24
3 changed files with 17 additions and 4 deletions
|
@ -649,8 +649,10 @@ class PydocImportTest(PydocBaseTest):
|
|||
def test_importfile(self):
|
||||
loaded_pydoc = pydoc.importfile(pydoc.__file__)
|
||||
|
||||
self.assertIsNot(loaded_pydoc, pydoc)
|
||||
self.assertEqual(loaded_pydoc.__name__, 'pydoc')
|
||||
self.assertEqual(loaded_pydoc.__file__, pydoc.__file__)
|
||||
self.assertEqual(loaded_pydoc.__spec__, pydoc.__spec__)
|
||||
|
||||
|
||||
class TestDescriptions(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue