diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2014-01-07 03:42:59 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2014-01-07 03:42:59 (GMT) |
commit | 3a62d14b24843de4884ea8d0167bc1285b285a97 (patch) | |
tree | fcaa670459f27aa6fc4e4902cdc7b4d53a207e2b /Lib/test/test_pydoc.py | |
parent | 3192eac6cfa658cb66e42bea4c7c59cef85fd6fc (diff) | |
download | cpython-3a62d14b24843de4884ea8d0167bc1285b285a97.zip cpython-3a62d14b24843de4884ea8d0167bc1285b285a97.tar.gz cpython-3a62d14b24843de4884ea8d0167bc1285b285a97.tar.bz2 |
Issue #19703: Update pydoc to use the new importer APIs.
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r-- | Lib/test/test_pydoc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 250fb04..1025f5a 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -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): |