From: xdegaye Date: Sat, 18 Nov 2017 17:20:21 +0000 (+0100) Subject: bpo-32031: Fix pydoc `test_mixed_case_module_names_are_lower_cased` (GH-4441) X-Git-Tag: v3.7.0a3~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebfaa71c2e8c018f72c179395dafaf06dcaf29e2;p=python 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. --- diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 2fa089320f..1926cffba2 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -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