Skip to content

Add a context manager to change cwd in test.test_support and run the test suite in a temp dir. #51961

@ezio-melotti

Description

@ezio-melotti
BPO 7712
Nosy @pitrou, @ezio-melotti, @merwok, @briancurtin, @florentx, @cjerdonek
Files
  • tempcwd.patch: Patch to add the context manager to test_support
  • issue7712.diff: Revised patch, still needs some tweaks.
  • issue7712v2.diff: Patch with context manager and fix for regrtest and a few tests
  • issue7712v3.diff: Final patch
  • test_bufio.stdout.txt
  • issue7712_regrtest_rm_hacks.diff: Patch, apply to trunk
  • 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 2010-03-14.11:28:20.836>
    created_at = <Date 2010-01-16.05:42:25.267>
    labels = ['type-feature', 'tests']
    title = 'Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.'
    updated_at = <Date 2012-09-19.00:30:26.412>
    user = 'https://github.com/ezio-melotti'

    bugs.python.org fields:

    activity = <Date 2012-09-19.00:30:26.412>
    actor = 'ezio.melotti'
    assignee = 'ezio.melotti'
    closed = True
    closed_date = <Date 2010-03-14.11:28:20.836>
    closer = 'ezio.melotti'
    components = ['Tests']
    creation = <Date 2010-01-16.05:42:25.267>
    creator = 'ezio.melotti'
    dependencies = []
    files = ['15904', '16146', '16175', '16179', '16181', '16219']
    hgrepos = []
    issue_num = 7712
    keywords = ['patch']
    message_count = 28.0
    messages = ['97865', '97871', '98059', '98060', '98061', '98072', '98936', '98939', '98949', '98951', '98955', '98988', '99002', '99034', '99051', '99079', '99080', '99083', '99088', '99090', '99091', '99144', '99269', '99295', '99311', '99498', '100545', '101051']
    nosy_count = 6.0
    nosy_names = ['pitrou', 'ezio.melotti', 'eric.araujo', 'brian.curtin', 'flox', 'chris.jerdonek']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue7712'
    versions = ['Python 2.7', 'Python 3.2']

    Metadata

    Metadata

    Assignees

    Labels

    testsTests in the Lib/test dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions