Skip to content

Commit ebfaa71

Browse files
authored
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.
1 parent d34d8fc commit ebfaa71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def get_pydoc_html(module):
357357
def get_pydoc_link(module):
358358
"Returns a documentation web link of a module"
359359
dirname = os.path.dirname
360-
basedir = dirname(dirname(os.path.realpath(__file__)))
360+
basedir = dirname(dirname(__file__))
361361
doc = pydoc.TextDoc()
362362
loc = doc.getdocloc(module, basedir=basedir)
363363
return loc

0 commit comments

Comments
 (0)