diff options
author | Bo Bayles <bbayles@gmail.com> | 2018-07-29 19:15:14 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-07-29 19:15:14 (GMT) |
commit | 4e11c461ed39085b8495a35c9367b46d8a0d306d (patch) | |
tree | a8890911059467a467e2c408f8bea2fc351b12eb /Lib | |
parent | 3f8c6913b82ed9c05e57175bcbfeacde46c598e3 (diff) | |
download | cpython-4e11c461ed39085b8495a35c9367b46d8a0d306d.zip cpython-4e11c461ed39085b8495a35c9367b46d8a0d306d.tar.gz cpython-4e11c461ed39085b8495a35c9367b46d8a0d306d.tar.bz2 |
bpo-34182: Fix test_pydoc running as a script. (GH-8389)
Diffstat (limited to 'Lib')
-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 37af664..06f8729 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 |