Skip to content

test_unexpected_data fails on Python 3.13 #55

Open
@wRAR

Description

@wRAR

3 tests fail with the same reason:

    def __test_invalid_input(data: str, msg: str, idx: int) -> None:
        with pytest.raises(sdjson.JSONDecodeError) as err:
                sdjson.loads(data)

        if PYPY:
                assert err.value.msg.startswith(msg)  # Fix for varying messages between PyPy versions
        else:
>               assert err.value.msg == msg
E     AssertionError: assert 'Illegal trai...end of object' == 'Expecting pr...double quotes'
E
E       - Expecting property name enclosed in double quotes
E       + Illegal trailing comma before end of object

Found in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1082269 and I can confirm it locally.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstale

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions