Skip to content

unittest.mock.Mock.reset_mocks does not pass all arguments to its children #83113

@vegarsti

Description

@vegarsti
mannequin
BPO 38932
Nosy @cjw296, @voidspace, @lisroach, @mariocj89, @tirkarthi, @vegarsti
PRs
  • bpo-38932: Make Mock.reset_mock() pass return_value and side_effect values to reset_mock on child mock objects #17409
  • 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.15:46:39.649>
    created_at = <Date 2019-11-27.19:59:26.401>
    labels = ['type-bug', 'library', '3.9']
    title = 'unittest.mock.Mock.reset_mocks does not pass all arguments to its children'
    updated_at = <Date 2020-01-25.15:46:39.648>
    user = 'https://github.com/vegarsti'

    bugs.python.org fields:

    activity = <Date 2020-01-25.15:46:39.648>
    actor = 'cjw296'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-01-25.15:46:39.649>
    closer = 'cjw296'
    components = ['Library (Lib)']
    creation = <Date 2019-11-27.19:59:26.401>
    creator = 'vegarsti'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38932
    keywords = ['patch']
    message_count = 5.0
    messages = ['357581', '357582', '357594', '357606', '360693']
    nosy_count = 6.0
    nosy_names = ['cjw296', 'michael.foord', 'lisroach', 'mariocj89', 'xtreak', 'vegarsti']
    pr_nums = ['17409']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38932'
    versions = ['Python 3.9']

    Linked PRs

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.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