mirror of
https://github.com/python/cpython.git
synced 2025-11-03 15:11:34 +00:00
Merged revisions 79520 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r79520 | brian.curtin | 2010-03-30 22:19:28 -0500 (Tue, 30 Mar 2010) | 9 lines
Merged revisions 79518 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79518 | brian.curtin | 2010-03-30 22:10:21 -0500 (Tue, 30 Mar 2010) | 2 lines
Fix #8225. xml.etree was displaying an incorrect link when viewed in help.
........
................
This commit is contained in:
parent
b820f085ed
commit
0d8a1dd647
2 changed files with 8 additions and 1 deletions
|
|
@ -8,6 +8,7 @@
|
|||
import inspect
|
||||
import unittest
|
||||
import test.support
|
||||
import xml.etree
|
||||
from contextlib import contextmanager
|
||||
from test.support import TESTFN, forget, rmtree, EnvironmentVarGuard
|
||||
|
||||
|
|
@ -253,6 +254,11 @@ def test_text_doc(self):
|
|||
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 = str(run_pydoc(missing_module), 'ascii')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue