Skip to content

mock.patch with autospec does not consume self / cls argument #76273

Description

@bclau
mannequin
BPO 32092
Nosy @cjw296, @voidspace, @phmc, @lisroach, @mariocj89, @BCLAU, @tirkarthi
PRs
  • gh-76273: Consume self when autospeccing unbound instance methods #4476
  • 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 = None
    created_at = <Date 2017-11-20.15:50:21.285>
    labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
    title = 'mock.patch with autospec does not consume self / cls argument'
    updated_at = <Date 2019-10-28.20:46:16.247>
    user = 'https://github.com/bclau'

    bugs.python.org fields:

    activity = <Date 2019-10-28.20:46:16.247>
    actor = 'pconnell'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2017-11-20.15:50:21.285>
    creator = 'cbelu'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32092
    keywords = ['patch']
    message_count = 2.0
    messages = ['306559', '306560']
    nosy_count = 7.0
    nosy_names = ['cjw296', 'michael.foord', 'pconnell', 'lisroach', 'mariocj89', 'cbelu', 'xtreak']
    pr_nums = ['4476']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32092'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Linked PRs

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions