Skip to content

reset_mock needs parameters to also reset return_value and side_effect #65470

@voidspace

Description

@voidspace
BPO 21271
Nosy @voidspace, @PCManticore, @berkerpeksag, @kushaldas
Files
  • issue21271.patch: New parameters for reset_mock
  • issue21271v2.patch: Version 2 of the patch
  • 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 2016-06-02.17:23:44.513>
    created_at = <Date 2014-04-16.20:51:44.316>
    labels = ['type-feature', 'library']
    title = 'reset_mock needs parameters to also reset return_value and side_effect'
    updated_at = <Date 2016-06-02.17:29:18.239>
    user = 'https://github.com/voidspace'

    bugs.python.org fields:

    activity = <Date 2016-06-02.17:29:18.239>
    actor = 'python-dev'
    assignee = 'michael.foord'
    closed = True
    closed_date = <Date 2016-06-02.17:23:44.513>
    closer = 'kushal.das'
    components = ['Library (Lib)']
    creation = <Date 2014-04-16.20:51:44.316>
    creator = 'michael.foord'
    dependencies = []
    files = ['38987', '38989']
    hgrepos = []
    issue_num = 21271
    keywords = ['patch']
    message_count = 7.0
    messages = ['216588', '240585', '240888', '240890', '240906', '266895', '266896']
    nosy_count = 5.0
    nosy_names = ['michael.foord', 'Claudiu.Popa', 'python-dev', 'berker.peksag', 'kushal.das']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue21271'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions