Repository navigation
Remove 3.10 from third-party test matrix; add 3.14 and 3.15 where possible - #836
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #836 +/- ##
=======================================
Coverage 97.44% 97.44%
=======================================
Files 3 3
Lines 7510 7510
=======================================
Hits 7318 7318
Misses 192 192
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | ||
| # as of 2026-11-29, one test fails on Python 3.15 |
There was a problem hiding this comment.
cc. @JelleZijlstra -- a failing run can be seen here. Codex's diagnosis is:
One change reduced the failure count from 1,832 to three. pycroscope’s
make_module()sets__loader__on a synthetic module, then passes the module’s globals tolinecache.lazycache(). On Python 3.15,linecacheemits aDeprecationWarningwhen it falls back to__loader__because__spec__.loaderis missing. pycroscope treats that warning as an error. I tried settingmod.__spec__to aModuleSpecwith the existing loader, which gave 2,200 passed, 31 skipped, 3 failed locally. Module construction · Warning in CPythonFiltering out just that warning in pytest exposed the same three failures, both with
typing_extensionsfrommainand with the released version, 4.16.0.
typing.NamedTuple— The test expects pycroscope to report deprecation diagnostics forNamedTuple("X", y=int),NamedTuple("X"), andNamedTuple("X", None). Python 3.15 rejects all three calls outright. pycroscope’s modeled signature and expected diagnostics need to reflect that change on 3.15. Test · 3.15 implementationProtocol[T]withGeneric[T]— The test deliberately defines a class inheriting from both at module scope. Python 3.15 raisesTypeErrorwhen the fixture executes that class definition, before pycroscope can check the expectedinvalid_basediagnostic. I verified that moving the class inside the fixture’s existing function makes the test pass with the assertion intact. pycroscope still analyzes the function body, and the fixture can execute without constructing the invalid class. Testurllib.parse.ParseResult— The typeshed stub declaresParseResultwith one type parameter on Python 3.15. The test expects zero type arguments, so its expected mapping of base classes to type arguments needs a 3.15 case. I reproduced this with thetypeshed-clientversion pinned in pycroscope’s lockfile as well. Test · Stub
|
(I need a fresh approval following the merge-conflict resolution, or I can't merge...) |
Uh oh!
There was an error while loading. Please reload this page.