Skip to content

unittest mock create_autospec doesn't correctly replace mocksignature #61387

Description

@cjw296
BPO 17185
Nosy @cjw296, @voidspace, @mariocj89, @pablogsal, @tirkarthi
PRs
  • bpo-17185: Add __signature__ to mock that can be used by inspect for signature #11048
  • [3.7] bpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11048) #11125
  • 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 = 'https://github.com/voidspace'
    closed_at = <Date 2018-12-12.07:58:18.079>
    created_at = <Date 2013-02-11.22:31:40.009>
    labels = ['3.7', '3.8', 'type-bug', 'tests']
    title = "unittest mock create_autospec doesn't correctly replace mocksignature"
    updated_at = <Date 2018-12-12.08:58:40.134>
    user = 'https://github.com/cjw296'

    bugs.python.org fields:

    activity = <Date 2018-12-12.08:58:40.134>
    actor = 'cjw296'
    assignee = 'michael.foord'
    closed = True
    closed_date = <Date 2018-12-12.07:58:18.079>
    closer = 'cjw296'
    components = ['Tests']
    creation = <Date 2013-02-11.22:31:40.009>
    creator = 'cjw296'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 17185
    keywords = ['patch']
    message_count = 9.0
    messages = ['181934', '223380', '223405', '329345', '330987', '331149', '331344', '331673', '331682']
    nosy_count = 5.0
    nosy_names = ['cjw296', 'michael.foord', 'mariocj89', 'pablogsal', 'xtreak']
    pr_nums = ['11048', '11125']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue17185'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of life3.8 (EOL)end of lifetestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions