Skip to content

Uncaught AttributeError in unittest.mock._get_target #85575

@gothill

Description

@gothill
mannequin
BPO 41403
Nosy @cjw296, @voidspace, @mariocj89, @tirkarthi, @iritkatriel, @gothill, @akulakov
PRs
  • bpo-41403: Improve error message for invalid mock target #30833
  • [3.10] bpo-41403: Improve error message for invalid mock target (GH-30833) #30834
  • [3.9] bpo-41403: Improve error message for invalid mock target (GH-30833) #30835
  • 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 2022-01-23.19:35:34.327>
    created_at = <Date 2020-07-26.19:15:44.076>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'Uncaught AttributeError in unittest.mock._get_target'
    updated_at = <Date 2022-01-23.19:35:34.327>
    user = 'https://github.com/gothill'

    bugs.python.org fields:

    activity = <Date 2022-01-23.19:35:34.327>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-01-23.19:35:34.327>
    closer = 'iritkatriel'
    components = ['Library (Lib)']
    creation = <Date 2020-07-26.19:15:44.076>
    creator = 'webisteme'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41403
    keywords = ['patch']
    message_count = 6.0
    messages = ['374339', '374362', '409472', '411400', '411410', '411411']
    nosy_count = 7.0
    nosy_names = ['cjw296', 'michael.foord', 'mariocj89', 'xtreak', 'iritkatriel', 'webisteme', 'andrei.avk']
    pr_nums = ['30833', '30834', '30835']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41403'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions