Skip to content

Remove 3.10 from third-party test matrix; add 3.14 and 3.15 where possible - #836

Merged
AlexWaygood merged 3 commits into
mainfrom
AlexWaygood-patch-1
Nov 30, 2026
Merged

AlexWaygood merged 3 commits into
mainfrom
AlexWaygood-patch-1

Conversation

@AlexWaygood

@AlexWaygood AlexWaygood commented Nov 29, 2026 •

Copy link
Copy Markdown
Member
  • Add 3.14 and 3.15 to the third-party matrix where possible
  • Remove outdated comments regarding PyPy: we don't actually run tests on PyPy for any third-party library these days. It was too flaky.
  • Remove 3.10 from all libraries in the workflow. We've already removed it for pydantic; I expect more libraries will drop support over the coming months since it's an end-of-life Python version, so I feel like we may as well drop it from the whole workflow at this point. I don't expect us to make many changes to our 3.10-only branches, so I think there is minimal chance of us regressing any of these libraries on Python 3.10.

@codecov

codecov Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.44%. Comparing base (563f2ca) to head (4f55b3e).

@@           Coverage Diff           @@
##             main     #836   +/-   ##
=======================================
  Coverage   97.44%   97.44%           
=======================================
  Files           3        3           
  Lines        7510     7510           
=======================================
  Hits         7318     7318           
  Misses        192      192           
Flag Coverage Δ
3.10 91.74% <ø> (ø)
3.10.4 91.74% <ø> (ø)
3.11 91.01% <ø> (ø)
3.11.0 90.23% <ø> (ø)
3.12 90.94% <ø> (ø)
3.12.0 90.93% <ø> (ø)
3.13 86.17% <ø> (ø)
3.13.0 86.90% <ø> (ø)
3.14 82.21% <ø> (ø)
3.14.0 82.96% <ø> (ø)
3.15 79.36% <ø> (ø)
3.15.0 79.36% <ø> (ø)
pypy3.10 91.57% <ø> (ø)
pypy3.11 90.86% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread .github/workflows/third_party.yml Outdated
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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 to linecache.lazycache(). On Python 3.15, linecache emits a DeprecationWarning when it falls back to __loader__ because __spec__.loader is missing. pycroscope treats that warning as an error. I tried setting mod.__spec__ to a ModuleSpec with the existing loader, which gave 2,200 passed, 31 skipped, 3 failed locally. Module construction · Warning in CPython

Filtering out just that warning in pytest exposed the same three failures, both with typing_extensions from main and with the released version, 4.16.0.

  1. typing.NamedTuple — The test expects pycroscope to report deprecation diagnostics for NamedTuple("X", y=int), NamedTuple("X"), and NamedTuple("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 implementation
  2. Protocol[T] with Generic[T] — The test deliberately defines a class inheriting from both at module scope. Python 3.15 raises TypeError when the fixture executes that class definition, before pycroscope can check the expected invalid_base diagnostic. 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. Test
  3. urllib.parse.ParseResult — The typeshed stub declares ParseResult with 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 the typeshed-client version pinned in pycroscope’s lockfile as well. Test · Stub

@AlexWaygood
AlexWaygood marked this pull request as ready for review November 29, 2026 20:31
@AlexWaygood
AlexWaygood requested a review from srittau November 30, 2026 13:48
@AlexWaygood

AlexWaygood commented Nov 30, 2026 •

Copy link
Copy Markdown
Member Author

(I need a fresh approval following the merge-conflict resolution, or I can't merge...)

@AlexWaygood
AlexWaygood merged commit 3d0d492 into main Nov 30, 2026
76 checks passed
@AlexWaygood
AlexWaygood deleted the AlexWaygood-patch-1 branch November 30, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants