Skip to content

assertRaises as a context manager keeps tracebacks and frames alive #54024

@ocean-city

Description

@ocean-city
BPO 9815
Nosy @akuchling, @pitrou, @vstinner, @ezio-melotti, @merwok, @voidspace
Files
  • py3k_fix_tarfile.patch
  • test_tar_pipe_open_read_error.py: small test script to reproduce the issue
  • test_tar_pipe_open_read_error_v2.py
  • test_assert_raises.py: small test script to reproduce
  • py3k_fix__AssertRaisesContext.patch: The patch to fix
  • test_traceback_freed.py
  • 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 = None
    closed_at = <Date 2014-04-28.23:26:39.786>
    created_at = <Date 2010-09-10.07:18:18.224>
    labels = ['extension-modules']
    title = 'assertRaises as a context manager keeps tracebacks and frames alive'
    updated_at = <Date 2014-04-28.23:26:39.785>
    user = 'https://bugs.python.org/ocean-city'

    bugs.python.org fields:

    activity = <Date 2014-04-28.23:26:39.785>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-04-28.23:26:39.786>
    closer = 'pitrou'
    components = ['Extension Modules']
    creation = <Date 2010-09-10.07:18:18.224>
    creator = 'ocean-city'
    dependencies = []
    files = ['18815', '18855', '18873', '18876', '18877', '18897']
    hgrepos = []
    issue_num = 9815
    keywords = ['patch', 'needs review']
    message_count = 17.0
    messages = ['115984', '116130', '116149', '116245', '116360', '116368', '116369', '116379', '116508', '117229', '117295', '117401', '181816', '194514', '199115', '217442', '217443']
    nosy_count = 8.0
    nosy_names = ['akuchling', 'pitrou', 'vstinner', 'ocean-city', 'ezio.melotti', 'eric.araujo', 'michael.foord', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue9815'
    versions = ['Python 3.3', 'Python 3.4']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions