mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-32031: Fix pydoc test_mixed_case_module_names_are_lower_cased
(GH-4441)
When there is a symlink in the directory path of the standard library.
This commit is contained in:
parent
d34d8fc24f
commit
ebfaa71c2e
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ def get_pydoc_html(module):
|
|||
def get_pydoc_link(module):
|
||||
"Returns a documentation web link of a module"
|
||||
dirname = os.path.dirname
|
||||
basedir = dirname(dirname(os.path.realpath(__file__)))
|
||||
basedir = dirname(dirname(__file__))
|
||||
doc = pydoc.TextDoc()
|
||||
loc = doc.getdocloc(module, basedir=basedir)
|
||||
return loc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue