Skip to content

exceptions.py tests failing on >= 3.7 because repr changed #1088

@silmeth

Description

@silmeth

CPython 3.7 changed exception’s repr implementation to get rid of a trailing comma:

repr for BaseException has changed to not include the trailing comma. Most exceptions are affected by this change. (Contributed by Serhiy Storchaka in bpo-30399.)

This makes the test case from exceptions.py fail on CPython 3.7 and later.

Should we get rid of the tests for repr, or perhaps just test substrings (that repr string contains both the type and the message)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-compatA discrepancy between RustPython and CPython

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions