Skip to content

asyncio.Task doesn't propagate CancelledError() exception correctly. #89553

@pagliariccim

Description

@pagliariccim
BPO 45390
Nosy @gvanrossum, @asvetlov, @cjerdonek, @serhiy-storchaka, @1st1, @graingert, @bensimner
PRs
  • bpo-45390: Propagate CancelledError's message from cancelled task to its awaiter #31383
  • Files
  • task_bug.py
  • task_bug.py
  • task_bug.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 2022-02-22.09:46:40.916>
    created_at = <Date 2021-10-06.11:30:42.256>
    labels = ['3.11', 'type-bug', 'expert-asyncio']
    title = "asyncio.Task doesn't propagate CancelledError() exception correctly."
    updated_at = <Date 2022-02-23.18:04:42.655>
    user = 'https://bugs.python.org/pagliariccim'

    bugs.python.org fields:

    activity = <Date 2022-02-23.18:04:42.655>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-02-22.09:46:40.916>
    closer = 'asvetlov'
    components = ['asyncio']
    creation = <Date 2021-10-06.11:30:42.256>
    creator = 'pagliaricci.m'
    dependencies = []
    files = ['50328', '50333', '50334']
    hgrepos = []
    issue_num = 45390
    keywords = ['patch']
    message_count = 20.0
    messages = ['403294', '403297', '403350', '403360', '403521', '403530', '403531', '403532', '403533', '403570', '413392', '413395', '413397', '413679', '413779', '413794', '413808', '413830', '413836', '413838']
    nosy_count = 8.0
    nosy_names = ['gvanrossum', 'asvetlov', 'chris.jerdonek', 'serhiy.storchaka', 'yselivanov', 'graingert', 'bjs', 'pagliaricci.m']
    pr_nums = ['31383']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45390'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixestopic-asynciotype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions