Skip to content

CI Tests are broken in 3.12 #2890

@awgymer

Description

@awgymer

Description of the bug

CI tests are failing under Python 3.12 with errors like:

 AttributeError: 'called_once_with' is not a valid assertion. Use a spec for the mock if 'called_once_with' is meant to be an attribute.. Did you mean: 'assert_called_once_with'?

This is due to changes made to the unittest behaviour (which I couldn't see listed anywhere in the official docs so...)

For a full explanation of the goings on please see: python/cpython#100690

Command used and terminal output

No response

System information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions