diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-03-31 03:10:21 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-03-31 03:10:21 (GMT) |
commit | aeb2e8295d74013662edf8ebba2a9aac24ee7d3c (patch) | |
tree | da6899754c2f046efe219e934439e037b7bd6d3b /Lib/test/test_pydoc.py | |
parent | b102ddadcbcaaf8fc50e5060e45b89a4d3a3a492 (diff) | |
download | cpython-aeb2e8295d74013662edf8ebba2a9aac24ee7d3c.zip cpython-aeb2e8295d74013662edf8ebba2a9aac24ee7d3c.tar.gz cpython-aeb2e8295d74013662edf8ebba2a9aac24ee7d3c.tar.bz2 |
Fix #8225. xml.etree was displaying an incorrect link when viewed in help.
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r-- | Lib/test/test_pydoc.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 43ad2c1..0685488 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -7,6 +7,7 @@ import re import pydoc import inspect import unittest +import xml.etree import test.test_support from contextlib import contextmanager from test.test_support import ( @@ -244,6 +245,11 @@ class PyDocDocTest(unittest.TestCase): print_diffs(expected_text, result) self.fail("outputs are not equal, see diff above") + def test_issue8225(self): + # Test issue8225 to ensure no doc link appears for xml.etree + result, doc_loc = get_pydoc_text(xml.etree) + self.assertEqual(doc_loc, "", "MODULE DOCS incorrectly includes a link") + def test_not_here(self): missing_module = "test.i_am_not_here" result = run_pydoc(missing_module) |