Skip to content

unittest swallows part of stack trace when raising AssertionError in a TestCase #69147

Description

@cjerdonek
BPO 24959
Nosy @rbtcollins, @ezio-melotti, @voidspace, @cjerdonek, @miss-islington, @iritkatriel, @dseomn
PRs
  • bpo-24959: fix unittest.assertRaises bug where traceback entries are dropped from chained exceptions #23688
  • [3.10] bpo-24959: fix unittest.assertRaises bug where traceback entries are dropped from chained exceptions (GH-23688) #31775
  • [3.9] bpo-24959: fix unittest.assertRaises bug where traceback entries are dropped from chained exceptions (GH-23688) #31776
  • 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-03-08.23:03:00.947>
    created_at = <Date 2015-08-29.16:15:14.217>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'unittest swallows part of stack trace when raising AssertionError in a TestCase'
    updated_at = <Date 2022-03-08.23:03:00.946>
    user = 'https://github.com/cjerdonek'

    bugs.python.org fields:

    activity = <Date 2022-03-08.23:03:00.946>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-03-08.23:03:00.947>
    closer = 'iritkatriel'
    components = ['Library (Lib)']
    creation = <Date 2015-08-29.16:15:14.217>
    creator = 'chris.jerdonek'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 24959
    keywords = ['patch']
    message_count = 11.0
    messages = ['249323', '249324', '261719', '261847', '261856', '261857', '269782', '382895', '414778', '414779', '414781']
    nosy_count = 8.0
    nosy_names = ['rbcollins', 'ezio.melotti', 'michael.foord', 'chris.jerdonek', 'Aaron Sokoloski', 'miss-islington', 'iritkatriel', 'dseomn']
    pr_nums = ['23688', '31775', '31776']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue24959'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of lifestdlibStandard 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