This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Do not use the canonical path in pydoc test_mixed_case_module_names_are_lower_cased
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: xdegaye
Priority: normal Keywords: patch

Created on 2017-11-15 09:37 by xdegaye, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 4441 merged xdegaye, 2017-11-17 10:22
Messages (4)
msg306259 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2017-11-15 09:37
test_mixed_case_module_names_are_lower_cased fails when there is a symlink in the directory path of the installed standard library.
msg306423 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2017-11-17 09:51
The error:

generic_x86_64:/data/local/tmp/python $ python -m test test_pydoc
Run tests sequentially
0:00:00 [1/1] test_pydoc
test test_pydoc failed -- Traceback (most recent call last):
  File "/sdcard/org.python/lib/python3.7/test/test_pydoc.py", line 459, in test_mixed_case_module_names_are_lower_cased
    self.assertIn('xml.etree.elementtree', doc_link)
  File "/sdcard/org.python/lib/python3.7/unittest/case.py", line 1103, in assertIn
    if member not in container:
TypeError: argument of type 'NoneType' is not iterable

test_pydoc failed
msg306424 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2017-11-17 09:59
The path returned by inspect.getabsfile(xml.etree.ElementTree) is not the canonical path, hence the test failure.
msg306487 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2017-11-18 17:20
New changeset ebfaa71c2e8c018f72c179395dafaf06dcaf29e2 by xdegaye in branch 'master':
bpo-32031: Fix pydoc `test_mixed_case_module_names_are_lower_cased` (GH-4441)
https://github.com/python/cpython/commit/ebfaa71c2e8c018f72c179395dafaf06dcaf29e2
History
Date User Action Args
2022-04-11 14:58:54adminsetgithub: 76212
2017-12-09 15:42:06xdegayelinkissue26865 dependencies
2017-11-18 17:21:38xdegayesetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-11-18 17:20:23xdegayesetmessages: + msg306487
2017-11-17 10:22:44xdegayesetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request4383
2017-11-17 09:59:41xdegayesetmessages: + msg306424
2017-11-17 09:51:52xdegayesetmessages: + msg306423
2017-11-15 09:37:41xdegayecreate