Skip to content

mock_open is not compatible with read(n) (and pickle.load) #76036

@RonRothman

Description

@RonRothman
BPO 31855
Nosy @cjw296, @voidspace, @mariocj89, @RonRothman, @remilapeyre, @tirkarthi
PRs
  • bpo-31855: unittest.mock.mock_open() results now respects the argument of read([size]) #11521
  • bpo-31855: unittest.mock.mock_open() results now respects the argument of read([size]) #11521
  • bpo-31855: unittest.mock.mock_open() results now respects the argument of read([size]) #11521
  • [3.7] bpo-31855: unittest.mock.mock_open() results now respects the argument of read([size]) (GH-11521) #13152
  • 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-05-07.13:07:44.390>
    created_at = <Date 2017-10-23.21:03:10.807>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'mock_open is not compatible with read(n) (and pickle.load)'
    updated_at = <Date 2019-05-07.13:07:44.389>
    user = 'https://github.com/RonRothman'

    bugs.python.org fields:

    activity = <Date 2019-05-07.13:07:44.389>
    actor = 'xtreak'
    assignee = 'michael.foord'
    closed = True
    closed_date = <Date 2019-05-07.13:07:44.390>
    closer = 'xtreak'
    components = ['Library (Lib)']
    creation = <Date 2017-10-23.21:03:10.807>
    creator = 'ron.rothman'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31855
    keywords = ['patch', 'patch', 'patch']
    message_count = 7.0
    messages = ['304841', '304846', '331920', '333484', '341704', '341714', '341719']
    nosy_count = 6.0
    nosy_names = ['cjw296', 'michael.foord', 'mariocj89', 'ron.rothman', 'remi.lapeyre', 'xtreak']
    pr_nums = ['11521', '11521', '11521', '13152']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue31855'
    versions = ['Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of life3.8 (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