Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use TracebackException's new compact param in unittest.TestResult #87100

Closed
iritkatriel opened this issue Jan 15, 2021 · 2 comments
Closed

use TracebackException's new compact param in unittest.TestResult #87100

iritkatriel opened this issue Jan 15, 2021 · 2 comments
Labels
3.10 only security fixes performance Performance or resource usage stdlib Python modules in the Lib dir

Comments

@iritkatriel
Copy link
Member

BPO 42934
Nosy @gvanrossum, @rbtcollins, @ezio-melotti, @voidspace, @iritkatriel
PRs
  • bpo-42934: use TracebackException's new compact param in unittest.Tes… #24221
  • 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 2021-01-15.16:00:37.679>
    created_at = <Date 2021-01-15.11:06:03.709>
    labels = ['library', '3.10', 'performance']
    title = "use TracebackException's new compact param in unittest.TestResult"
    updated_at = <Date 2021-01-15.16:00:37.678>
    user = 'https://github.com/iritkatriel'

    bugs.python.org fields:

    activity = <Date 2021-01-15.16:00:37.678>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-01-15.16:00:37.679>
    closer = 'gvanrossum'
    components = ['Library (Lib)']
    creation = <Date 2021-01-15.11:06:03.709>
    creator = 'iritkatriel'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42934
    keywords = ['patch']
    message_count = 2.0
    messages = ['385105', '385115']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'rbcollins', 'ezio.melotti', 'michael.foord', 'iritkatriel']
    pr_nums = ['24221']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue42934'
    versions = ['Python 3.10']

    @iritkatriel
    Copy link
    Member Author

    The TracebackException instance created here

    tb_e = traceback.TracebackException(

    is only used for format(), so it can benefit from the compact param added in bpo-42877.

    @iritkatriel iritkatriel added 3.10 only security fixes stdlib Python modules in the Lib dir performance Performance or resource usage labels Jan 15, 2021
    @gvanrossum
    Copy link
    Member

    New changeset ba876c4 by Irit Katriel in branch 'master':
    bpo-42934: use TracebackException(compact=True) in unittest.TestResult (GH-24221)
    ba876c4

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.10 only security fixes performance Performance or resource usage stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants