Skip to content

Enhancement: give mock_open readline() and readlines() methods #61669

Closed
@abadger

Description

@abadger
mannequin
BPO 17467
Nosy @abadger, @voidspace
PRs
  • bpo-35717: Fix KeyError exception raised when using enums and compile #11523
  • bpo-35717: Fix KeyError exception raised when using enums and compile #11523
  • bpo-35717: Fix KeyError exception raised when using enums and compile #11523
  • Superseder
  • bpo-23004: mock_open() should allow reading binary data
  • Files
  • python3-mock_open-methods.patch: Patch mock_open to understand readline and readlines methods
  • 01000-mock_open-methods.patch: 2nd version of mock_open readline/readlines patch
  • 01000-mock_open-methods.patch: 3rd version of the mock_open patch -- docs and read/readline/readlines draw from the same read_data
  • 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 2013-03-20.00:22:57.778>
    created_at = <Date 2013-03-18.20:09:13.694>
    labels = ['type-feature']
    title = 'Enhancement: give mock_open readline() and readlines() methods'
    updated_at = <Date 2019-01-11.17:00:44.507>
    user = 'https://github.com/abadger'

    bugs.python.org fields:

    activity = <Date 2019-01-11.17:00:44.507>
    actor = 'remi.lapeyre'
    assignee = 'michael.foord'
    closed = True
    closed_date = <Date 2013-03-20.00:22:57.778>
    closer = 'python-dev'
    components = []
    creation = <Date 2013-03-18.20:09:13.694>
    creator = 'a.badger'
    dependencies = []
    files = ['29454', '29479', '29484']
    hgrepos = []
    issue_num = 17467
    keywords = ['patch', 'needs review']
    message_count = 4.0
    messages = ['184512', '184642', '184664', '184714']
    nosy_count = 3.0
    nosy_names = ['a.badger', 'michael.foord', 'python-dev']
    pr_nums = ['11523', '11523', '11523']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = '23004'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17467'
    versions = ['Python 3.4']

    Metadata

    Metadata

    Assignees

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions