From f5d921ab0524b935cbe6e0f4598e159dc9415611 Mon Sep 17 00:00:00 2001 From: Xavier de Gaye Date: Fri, 17 Nov 2017 11:03:16 +0100 Subject: [PATCH] bpo-32031: Fix pydoc `test_mixed_case_module_names_are_lower_cased` When there is a symlink in the directory path of the standard library. --- Lib/test/test_pydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 52830b49aea31f8..e27171cd3d4a47c 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