Skip to content

Test failures with Python 3.13 #161

@juliangilbey

Description

@juliangilbey

Hi!

Python 3.13 has changed the message associated with HTTP code 422 from 'Unprocessable Entity' to 'Unprocessable Content', which breaks three tests:

FAILED tests/renderers/httpdomain/test_render_response.py::test_render_response_content_custom[422]
FAILED tests/renderers/httpdomain/test_render_response_example.py::test_render_response_status_code[422]
FAILED tests/renderers/httpdomain/test_render_response_example.py::test_render_response_status_code_int[422]

So these tests require some sort of conditional to change the expected output depending on the Python version. I don't know how to do this "nicely", though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions