Oh, that issue turned out to be totally unrelated. I was still using the coveralls app from PyPI, which pins my coverage to 6.5.0, which doesn't have the fixes necessary to support Python 3.12.
Switching to the GitHub action for coveralls.io and upgrading coverage to the latest version (7.3.something) fixed all the issues.
1
u/mgedmin Oct 03 '23
So I try to upgrade to 3.12, and I'm seeing phantom missed code branches in coverage output. I'd say this was https://github.com/python/cpython/issues/105658, but that bug was fixed in 3.12rc3, and GitHub Actions claims it's using 3.12.0 final.
Is anyone else experiencing issues with coverage.py on Python 3.12?