Skip to content

mock calls don't propagate to parent (autospec) #65677

Description

@and
mannequin
BPO 21478
Nosy @cjw296, @voidspace, @PCManticore, @kushaldas, @mariocj89, @tirkarthi, @iforapsy
PRs
  • bpo-21478: Autospec functions should propagate mock calls to parent #11273
  • [3.7] bpo-21478 - Autospec functions should propagate mock calls to parent GH-11273 #12039
  • bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock #14688
  • [3.8] bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) #14902
  • [3.7] bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) #14903
  • 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 2019-07-22.08:40:25.282>
    created_at = <Date 2014-05-12.12:56:34.786>
    labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
    title = "mock calls don't propagate to parent (autospec)"
    updated_at = <Date 2019-10-17.02:09:03.392>
    user = 'https://bugs.python.org/and'

    bugs.python.org fields:

    activity = <Date 2019-10-17.02:09:03.392>
    actor = 'xtreak'
    assignee = 'michael.foord'
    closed = True
    closed_date = <Date 2019-07-22.08:40:25.282>
    closer = 'xtreak'
    components = ['Library (Lib)']
    creation = <Date 2014-05-12.12:56:34.786>
    creator = 'and'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 21478
    keywords = ['patch']
    message_count = 22.0
    messages = ['218321', '218362', '332252', '347592', '347593', '347631', '347705', '348285', '348288', '348289', '348291', '354489', '354491', '354496', '354642', '354735', '354737', '354748', '354749', '354750', '354815', '354827']
    nosy_count = 9.0
    nosy_names = ['cjw296', 'michael.foord', 'Claudiu.Popa', 'kushal.das', 'and', 'mariocj89', 'xtreak', 'iforapsy', 'Caris Moses']
    pr_nums = ['11273', '12039', '14688', '14902', '14903']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue21478'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions