Skip to content

warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted #48031

@exarkun

Description

@exarkun
mannequin
BPO 3781
Nosy @warsaw, @brettcannon, @ncoghlan, @pitrou, @benjaminp
Files
  • clean_up_catch_warnings.diff
  • issue3781_revert_to_beta_implementation_26.diff: Revert catch_warnings to the beta implementation
  • issue3781_catch_warnings_cleanup.diff: Cleanup catch_warnings and test suite usage for rc1
  • issue3781_catch_warnings_cleanup_py3k.diff: Forward port of r66386 to py3k
  • 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 2008-10-16.23:24:58.875>
    created_at = <Date 2008-09-04.22:10:08.782>
    labels = ['type-bug', 'library', 'release-blocker']
    title = 'warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted'
    updated_at = <Date 2010-11-13.00:15:08.527>
    user = 'https://bugs.python.org/exarkun'

    bugs.python.org fields:

    activity = <Date 2010-11-13.00:15:08.527>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-10-16.23:24:58.875>
    closer = 'benjamin.peterson'
    components = ['Library (Lib)']
    creation = <Date 2008-09-04.22:10:08.782>
    creator = 'exarkun'
    dependencies = []
    files = ['11416', '11444', '11456', '11489']
    hgrepos = []
    issue_num = 3781
    keywords = ['patch', 'needs review']
    message_count = 41.0
    messages = ['72533', '72534', '72544', '72547', '72555', '72563', '72564', '72672', '72678', '72679', '72680', '72715', '72754', '72795', '72805', '72813', '72817', '72838', '72839', '72851', '72853', '72855', '72864', '72865', '72866', '72867', '72868', '72872', '72873', '72898', '72926', '72937', '72952', '72967', '72995', '73017', '73029', '73057', '73223', '73753', '74880']
    nosy_count = 7.0
    nosy_names = ['barry', 'brett.cannon', 'lkcl', 'exarkun', 'ncoghlan', 'pitrou', 'benjamin.peterson']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue3781'
    versions = ['Python 3.0']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      release-blockerstdlibStandard 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