I've submitted a merge request [1]. unit-test-p3 runs python3 -Wdefaults -m unittest had been picking up no tests. With Python 3.12 unittest picking up no tests is flagged as a failure [2]. It might be worth commenting out unit-test-p3 until we investigate and conclude on why no tests are picked up.
[1] https://salsa.debian.org/python-team/packages/factory-boy/-/merge_requests/1 [2] https://github.com/python/cpython/pull/102051