Currently available vim only supports up to python 3.11. I've ran the tests with python 3.12 and everything works. Just changing thte PYTHON_COMPAT variable to include python3_12 is enough. Reproducible: Always
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba398c70854ed38202342c1061a7d5a6f772f645