#1145085 lazy-object-proxy: FTBFS building against python 3.15

#1145085#5
Date:
2026-08-22 08:55:32 UTC
From:
To:
Package: src:lazy-object-proxy
Version: 1.12.0-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 lazy-object-proxy fails to build from source [1].

This is due to some changes in the exception messages in 3.15, and the
tests of lazy-object-proxy requiring an exact match.

I'm attaching a patch to fix that, and a fix to a RuntimeWarning as the
coroutine is never closed when an exception is raised (test_await_12).

Please consider including this patch in your next upload and forwarding
the patch upstream.

Happy hacking,

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