Skip to content

MagicMock initializer fails for magic methods #67499

@berdario

Description

@berdario
mannequin
BPO 23310
Nosy @rbtcollins, @voidspace, @ambv, @ChillarAnand
Files
  • test_mock.py: sample test
  • fix_magic_in_init.diff: Tests for this bug + proposed fix.
  • fix_magic_in_init_v2.diff
  • 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/ambv'
    closed_at = <Date 2015-04-14.07:19:28.092>
    created_at = <Date 2015-01-24.17:20:39.542>
    labels = ['type-bug', 'library']
    title = 'MagicMock initializer fails for magic methods'
    updated_at = <Date 2015-04-14.07:24:37.325>
    user = 'https://bugs.python.org/berdario'

    bugs.python.org fields:

    activity = <Date 2015-04-14.07:24:37.325>
    actor = 'lukasz.langa'
    assignee = 'lukasz.langa'
    closed = True
    closed_date = <Date 2015-04-14.07:19:28.092>
    closer = 'lukasz.langa'
    components = ['Library (Lib)']
    creation = <Date 2015-01-24.17:20:39.542>
    creator = 'berdario'
    dependencies = []
    files = ['38654', '38919', '38922']
    hgrepos = []
    issue_num = 23310
    keywords = ['patch']
    message_count = 8.0
    messages = ['234623', '239013', '240623', '240626', '240631', '240844', '240853', '240854']
    nosy_count = 7.0
    nosy_names = ['rbcollins', 'michael.foord', 'lukasz.langa', 'python-dev', 'berdario', 'chillaranand', 'kjachim']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue23310'
    versions = ['Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard 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