bpo-32031: Fix pydoc test_mixed_case_module_names_are_lower_cased
(… · python/cpython@ebfaa71 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit ebfaa71
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.
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -357,7 +357,7 @@ def get_pydoc_html(module): | ||
357 | 357 | def get_pydoc_link(module): |
358 | 358 | "Returns a documentation web link of a module" |
359 | 359 | dirname = os.path.dirname |
360 | -basedir = dirname(dirname(os.path.realpath(__file__))) | |
360 | +basedir = dirname(dirname(__file__)) | |
361 | 361 | doc = pydoc.TextDoc() |
362 | 362 | loc = doc.getdocloc(module, basedir=basedir) |
363 | 363 | return loc |