summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc.py
diff options
context:
space:
mode:
authorxdegaye <xdegaye@gmail.com>2017-11-18 17:20:21 (GMT)
committerGitHub <noreply@github.com>2017-11-18 17:20:21 (GMT)
commitebfaa71c2e8c018f72c179395dafaf06dcaf29e2 (patch)
treef0cb1438ca50cb04ac2ebcfd66d1053b2c6b9829 /Lib/test/test_pydoc.py
parentd34d8fc24f23ccff5de03c9277da5acbbdc30e90 (diff)
downloadcpython-ebfaa71c2e8c018f72c179395dafaf06dcaf29e2.zip
cpython-ebfaa71c2e8c018f72c179395dafaf06dcaf29e2.tar.gz
cpython-ebfaa71c2e8c018f72c179395dafaf06dcaf29e2.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r--Lib/test/test_pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py
index 2fa0893..1926cff 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