Anyone noticed tests running slower on Python 3.12 ? If you're using coverage.py, the quick fix is to set env variable COVERAGE_CORE=sysmon. Just got 3.5x speedup for my tests.
Ref: https://github.com/nedbat/coveragepy/issues/1665 and https://github.com/python/cpython/issues/107674
#python #python312 #coveragepy #pytest #coverage #pytest_cov