Skip to content

ExitStack.__exit__ incorrectly suppresses exceptions in __exit__ callbacks of inner context managers #63291

@hniksic

Description

@hniksic
mannequin
BPO 19092
Nosy @warsaw, @ncoghlan, @orsenthil, @hniksic
Files
  • exitstack.diff: patch described in the initial report
  • exitstack.diff: Updated patch
  • exitstack.diff: Updated patch, with fixed context
  • 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/ncoghlan'
    closed_at = <Date 2013-10-01.13:28:18.197>
    created_at = <Date 2013-09-25.19:09:47.345>
    labels = ['type-bug', 'library']
    title = 'ExitStack.__exit__ incorrectly suppresses exceptions in __exit__ callbacks of inner context managers'
    updated_at = <Date 2014-01-12.15:02:48.450>
    user = 'https://github.com/hniksic'

    bugs.python.org fields:

    activity = <Date 2014-01-12.15:02:48.450>
    actor = 'orsenthil'
    assignee = 'ncoghlan'
    closed = True
    closed_date = <Date 2013-10-01.13:28:18.197>
    closer = 'python-dev'
    components = ['Library (Lib)']
    creation = <Date 2013-09-25.19:09:47.345>
    creator = 'hniksic'
    dependencies = []
    files = ['31872', '31897', '31908']
    hgrepos = []
    issue_num = 19092
    keywords = ['patch']
    message_count = 10.0
    messages = ['198411', '198421', '198427', '198428', '198548', '198559', '198623', '198773', '207926', '207959']
    nosy_count = 5.0
    nosy_names = ['barry', 'ncoghlan', 'orsenthil', 'hniksic', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue19092'
    versions = ['Python 3.3', 'Python 3.4']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard 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