diff options
author | Bo Bayles <bbayles@gmail.com> | 2018-07-29 14:15:14 -0500 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-07-29 22:15:14 +0300 |
commit | 4e11c461ed39085b8495a35c9367b46d8a0d306d (patch) | |
tree | a8890911059467a467e2c408f8bea2fc351b12eb /Lib/test/test_pydoc.py | |
parent | 3f8c6913b82ed9c05e57175bcbfeacde46c598e3 (diff) | |
download | cpython-git-4e11c461ed39085b8495a35c9367b46d8a0d306d.tar.gz |
bpo-34182: Fix test_pydoc running as a script. (GH-8389)
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r-- | Lib/test/test_pydoc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 37af6643f6..06f8729995 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -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 |