Skip to content

Commit

Permalink
bpo-34182: Fix test_pydoc running as a script. (GH-8389)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbayles authored and serhiy-storchaka committed Jul 29, 2018
1 parent 3f8c691 commit 4e11c46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_pydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e11c46

Please sign in to comment.