[Python-checkins] bpo-32031: Fix pydoc `test_mixed_case_module_names_are_lower_cased` (GH-4441)

xdegaye webhook-mailer at python.org
Sat Nov 18 12:20:23 EST 2017


https://github.com/python/cpython/commit/ebfaa71c2e8c018f72c179395dafaf06dcaf29e2
commit: ebfaa71c2e8c018f72c179395dafaf06dcaf29e2
branch: master
author: xdegaye <xdegaye at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-11-18T18:20:21+01:00
summary:

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.

files:
M Lib/test/test_pydoc.py

diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py
index 2fa089320fd..1926cffba26 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



More information about the Python-checkins mailing list