Currently available fontconfig only supports up to python 3.11. I've ran the tests with python 3.12 and everything works. Just changing the PYTHON_COMPAT variable to include python3_12 is enough. Reproducible: Always
Done in 2.15.0.