Skip to content

Mock functions with autospec don't support assert_called_once, assert_called, assert_not_called #72566

@YannickBrehon

Description

@YannickBrehon
BPO 28380
Nosy @gpshead
PRs
  • [Do Not Merge] Convert Misc/NEWS so that it is managed by towncrier #552
  • Files
  • fix_autospecced_mock_functions.patch: Patch for fixing the issue against head
  • 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/gpshead'
    closed_at = <Date 2016-10-06.21:35:57.302>
    created_at = <Date 2016-10-06.20:13:19.511>
    labels = ['3.7', 'type-bug', 'library']
    title = "Mock functions with autospec don't support assert_called_once, assert_called, assert_not_called"
    updated_at = <Date 2017-03-31.16:36:23.729>
    user = 'https://bugs.python.org/YannickBrehon'

    bugs.python.org fields:

    activity = <Date 2017-03-31.16:36:23.729>
    actor = 'dstufft'
    assignee = 'gregory.p.smith'
    closed = True
    closed_date = <Date 2016-10-06.21:35:57.302>
    closer = 'gregory.p.smith'
    components = ['Library (Lib)']
    creation = <Date 2016-10-06.20:13:19.511>
    creator = 'Yannick Brehon'
    dependencies = []
    files = ['44991']
    hgrepos = []
    issue_num = 28380
    keywords = ['patch']
    message_count = 3.0
    messages = ['278208', '278213', '278214']
    nosy_count = 3.0
    nosy_names = ['gregory.p.smith', 'python-dev', 'Yannick Brehon']
    pr_nums = ['552']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'commit review'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue28380'
    versions = ['Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    Labels

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions