Package: src:python-wsgi-intercept
Version: 1.13.1-3
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid

Hi!

While rebuilding the python related packages against the Python 3.15rc1
version we found that python-wsgi-intercept fails to build from source
[1].
The tests fail with numerous errors related to HTTPConnection and
HTTPSConnection, like this one:

AttributeError("'HTTPS_WSGIInterceptor' object has no attribute
'_dns_host'")

The root cause is that in Python 3.15 http.client.HTTPConnection added a
new kwarg max_response_headers [2]. I've created a patch that takes care
of this by popping the argument.

I applied the fix in the sandbox [3] to be able to build the packages
that depend on python-wsgi-intercept, please consider applying the patch
to support the upcoming 3.15 version.

Both the issue and the patch still need to be forwarded upstream, as
there is no work to support 3.15 there yet.

Happy hacking,

[1]: 
https://debusine.debian.net/debian/r-python-python3.15/work-request/1102989/
[2]: https://docs.python.org/3.15/whatsnew/3.15.html#http-client
[3]: https://debusine.debian.net/debian/r-python-python3.15/

--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
Description: pop max_response_headers
Forwarded: no

Index: python-wsgi-intercept/wsgi_intercept/__init__.py
===================================================================
--- python-wsgi-intercept.orig/wsgi_intercept/__init__.py
+++ python-wsgi-intercept/wsgi_intercept/__init__.py
@@ -529,6 +529,7 @@ class WSGI_HTTPConnection(HTTPConnection
         """
         # TODO: This seems really really fragile but is passing
         # tests.
+        kwargs.pop('max_response_headers', None)
         if 'host' in kwargs:
             host = kwargs.pop('host')
             if 'port' in kwargs:

Reply via email to