I reckon this is due to the Python 3 version used by the Python 2 tests is different from 3.12, so even with --lang=3 the tests are still using an incompatible version :(