Skip to content
/ cpython Public
forked from python/cpython

Commit

Permalink
bpo-32031: Fix pydoc test_mixed_case_module_names_are_lower_cased (p…
Browse files Browse the repository at this point in the history
…ythonGH-4441)

When there is a symlink in the directory path of the standard library.
  • Loading branch information
xdegaye committed Nov 18, 2017
1 parent d34d8fc commit ebfaa71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_pydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ebfaa71

Please sign in to comment.