Skip to content

test_exc() helper in test_format.py doesn't fail if exception message unexpected #119949

Open
@skirpichev

Description

@skirpichev

Bug report

Bug description:

Follow up of #119780. Quick fix is to add raise statement: 7f9b4d0 But it was suggested to do refactoring of this function instead.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions