Skip to content

Do not use the canonical path in pydoc test_mixed_case_module_names_are_lower_cased #76212

Closed

Description

@xdegaye
mannequin
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']

    Activity

    1. xdegaye commented on Nov 15, 2017

      xdegayemannequin
      MannequinAuthor

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

    2. added
      3.7 (EOL)
      tests
      type-bug
      on Nov 15, 2017
    3. xdegaye commented on Nov 17, 2017

      xdegayemannequin
      MannequinAuthor

      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

    4. xdegaye commented on Nov 17, 2017

      xdegayemannequin
      MannequinAuthor

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

    5. xdegaye commented on Nov 18, 2017

      xdegayemannequin
      MannequinAuthor

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

    6. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)teststype-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions