Skip to content

Use the 'with' statement in conjunction with 'open' throughout test modules #52192

@midnightdf

Description

@midnightdf
BPO 7944
Nosy @rhettinger, @amauryfa, @giampaolo, @ezio-melotti, @merwok, @voidspace
Dependencies
  • bpo-7232: Support of 'with' statement fo TarFile class
  • Files
  • test_old_mailbox.py: Modified version of test_old_mailbox.py
  • test_old_mailbox.patch
  • issue7944_gzip.diff
  • issue7944_marshal.diff
  • issue7944_zipfile64.diff
  • issue7944_tarfile.diff: This depends on Support of 'with' statement fo TarFile class #51481
  • issue7944_tempfile.diff: Updated with review comments from RDM
  • test_os.patch
  • issue7944_tarfile_2_7.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/ezio-melotti'
    closed_at = <Date 2016-01-13.20:23:00.745>
    created_at = <Date 2010-02-16.17:43:50.012>
    labels = ['easy', 'type-feature', 'tests']
    title = "Use the 'with' statement in conjunction with 'open' throughout test modules"
    updated_at = <Date 2016-01-13.20:23:00.744>
    user = 'https://bugs.python.org/midnightdf'

    bugs.python.org fields:

    activity = <Date 2016-01-13.20:23:00.744>
    actor = 'ezio.melotti'
    assignee = 'ezio.melotti'
    closed = True
    closed_date = <Date 2016-01-13.20:23:00.745>
    closer = 'ezio.melotti'
    components = ['Tests']
    creation = <Date 2010-02-16.17:43:50.012>
    creator = 'midnightdf'
    dependencies = ['7232']
    files = ['16235', '16237', '16286', '16287', '16290', '16311', '16312', '19218', '36212']
    hgrepos = []
    issue_num = 7944
    keywords = ['patch', 'easy']
    message_count = 22.0
    messages = ['99425', '99434', '99617', '99618', '99619', '99699', '99700', '99703', '99780', '118498', '118500', '118553', '118554', '118556', '118557', '118610', '185771', '185817', '224458', '224564', '258166', '258167']
    nosy_count = 10.0
    nosy_names = ['rhettinger', 'amaury.forgeotdarc', 'giampaolo.rodola', 'ezio.melotti', 'eric.araujo', 'michael.foord', 'midnightdf', 'BreamoreBoy', 'python-dev', 'evans.mungai']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue7944'
    versions = ['Python 2.7']

    Metadata

    Metadata

    Assignees

    Labels

    easytestsTests in the Lib/test dirtype-featureA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions