Commit 4e11c461 authored by Bo Bayles's avatar Bo Bayles Committed by Serhiy Storchaka

bpo-34182: Fix test_pydoc running as a script. (GH-8389)

parent 3f8c6913
......@@ -357,8 +357,9 @@ def get_pydoc_html(module):
def get_pydoc_link(module):
"Returns a documentation web link of a module"
abspath = os.path.abspath
dirname = os.path.dirname
basedir = dirname(dirname(__file__))
basedir = dirname(dirname(abspath(__file__)))
doc = pydoc.TextDoc()
loc = doc.getdocloc(module, basedir=basedir)
return loc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment