#1145078 parso: FTBFS building against python 3.15

Package:
src:parso
Source:
src:parso
Submitter:
Maximiliano Curia
Date:
2026-08-22 11:49:05 UTC
Severity:
normal
Tags:
#1145078#5
Date:
2026-08-22 08:15:17 UTC
From:
To:
Package: src:parso
Version: 0.8.7-1
User: debian-python@lists.debian.org
Usertags: python3.15
Tags: patch

Hi!

While rebuilding the python related packages against the python version
3.15rc1 we found that parso fails to build from source [1].

Python 3.15 changed some of the texts in the exception messages and
parso tests rely on the exact wordings. Upstream already has fixed these
issues and I'm attaching the upstream patches that we used in the
sandbox.

Please consider applying these patches to fix the compatibility with
python 3.15.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/work-request/1021941/