Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use the canonical path in pydoc test_mixed_case_module_names_are_lower_cased #76212

Closed
xdegaye mannequin opened this issue Nov 15, 2017 · 4 comments
Closed

Do not use the canonical path in pydoc test_mixed_case_module_names_are_lower_cased #76212

xdegaye mannequin opened this issue Nov 15, 2017 · 4 comments
Labels
3.7 tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented Nov 15, 2017

BPO 32031
Nosy @xdegaye
PRs
  • bpo-32031: Fix pydoc test_mixed_case_module_names_are_lower_cased #4441
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-11-18.17:21:38.016>
    created_at = <Date 2017-11-15.09:37:41.679>
    labels = ['3.7', 'type-bug', 'tests']
    title = 'Do not use the canonical path in pydoc test_mixed_case_module_names_are_lower_cased'
    updated_at = <Date 2017-11-18.17:21:38.015>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2017-11-18.17:21:38.015>
    actor = 'xdegaye'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-11-18.17:21:38.016>
    closer = 'xdegaye'
    components = ['Tests']
    creation = <Date 2017-11-15.09:37:41.679>
    creator = 'xdegaye'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32031
    keywords = ['patch']
    message_count = 4.0
    messages = ['306259', '306423', '306424', '306487']
    nosy_count = 1.0
    nosy_names = ['xdegaye']
    pr_nums = ['4441']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32031'
    versions = ['Python 3.7']

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Nov 15, 2017

    test_mixed_case_module_names_are_lower_cased fails when there is a symlink in the directory path of the installed standard library.

    @xdegaye xdegaye mannequin added 3.7 tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Nov 15, 2017
    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Nov 17, 2017

    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

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Nov 17, 2017

    The path returned by inspect.getabsfile(xml.etree.ElementTree) is not the canonical path, hence the test failure.

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Nov 18, 2017

    New changeset ebfaa71 by xdegaye in branch 'master':
    bpo-32031: Fix pydoc test_mixed_case_module_names_are_lower_cased (GH-4441)
    ebfaa71

    @xdegaye xdegaye mannequin closed this as completed Nov 18, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants