Skip to content

AttributeError on asserting autospecced mock object added using attach_mock #82654

@tirkarthi

Description

@tirkarthi
BPO 38473
Nosy @gpshead, @cjw296, @ned-deily, @voidspace, @ambv, @lisroach, @mariocj89, @tirkarthi
PRs
  • bpo-38473: Handle autospecced functions and methods used with attach_mock #16784
  • [3.7] bpo-38473: Handle autospecced functions and methods used with attach_mock (GH-16784) #18166
  • [3.8] bpo-38473: Handle autospecced functions and methods used with attach_mock (GH-16784) #18167
  • 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 2020-01-25.14:56:39.839>
    created_at = <Date 2019-10-14.14:25:09.791>
    labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
    title = 'AttributeError on asserting autospecced mock object added using attach_mock'
    updated_at = <Date 2020-01-25.14:56:39.838>
    user = 'https://github.com/tirkarthi'

    bugs.python.org fields:

    activity = <Date 2020-01-25.14:56:39.838>
    actor = 'xtreak'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-01-25.14:56:39.839>
    closer = 'xtreak'
    components = ['Library (Lib)']
    creation = <Date 2019-10-14.14:25:09.791>
    creator = 'xtreak'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38473
    keywords = ['patch', '3.7regression', '3.8regression']
    message_count = 5.0
    messages = ['354635', '360616', '360688', '360689', '360690']
    nosy_count = 8.0
    nosy_names = ['gregory.p.smith', 'cjw296', 'ned.deily', 'michael.foord', 'lukasz.langa', 'lisroach', 'mariocj89', 'xtreak']
    pr_nums = ['16784', '18166', '18167']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38473'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of life3.9only security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions