diff -Nru python-requests-unixsocket-0.3.0/debian/changelog python-requests-unixsocket-0.3.0/debian/changelog --- python-requests-unixsocket-0.3.0/debian/changelog 2024-02-14 03:17:03.000000000 -0700 +++ python-requests-unixsocket-0.3.0/debian/changelog 2024-02-15 00:53:56.000000000 -0700 @@ -1,3 +1,10 @@ +python-requests-unixsocket (0.3.0-3ubuntu2) noble; urgency=medium + + * Fix test flakiness due to unread data (LP: #2053154) + - d/p/0002-fix-HEAD-method-tests.patch + + -- Dan Bungert Thu, 15 Feb 2024 00:53:56 -0700 + python-requests-unixsocket (0.3.0-3ubuntu1) noble; urgency=medium * Fix incompatibility with requests 2.29 (LP: #2053016). diff -Nru python-requests-unixsocket-0.3.0/debian/patches/0002-fix-HEAD-method-tests.patch python-requests-unixsocket-0.3.0/debian/patches/0002-fix-HEAD-method-tests.patch --- python-requests-unixsocket-0.3.0/debian/patches/0002-fix-HEAD-method-tests.patch 1969-12-31 17:00:00.000000000 -0700 +++ python-requests-unixsocket-0.3.0/debian/patches/0002-fix-HEAD-method-tests.patch 2024-02-15 00:53:25.000000000 -0700 @@ -0,0 +1,15 @@ +Description: Omit body bytes for a HEAD method request +Bug-Ubuntu: https://bugs.launchpad.net/bugs/2053154 +Forwarded: no +Last-Update: 2024-02-15 +--- a/requests_unixsocket/testutils.py ++++ b/requests_unixsocket/testutils.py +@@ -51,6 +51,8 @@ + ('X-Requested-Query-String', environ['QUERY_STRING']), + ('X-Requested-Path', environ['PATH_INFO'])] + body_bytes = b'Hello world!' ++ if environ["REQUEST_METHOD"] == "HEAD": ++ body_bytes = b'' + start_response(status_text, response_headers) + logger.debug( + 'WSGIApp.__call__: Responding with ' diff -Nru python-requests-unixsocket-0.3.0/debian/patches/series python-requests-unixsocket-0.3.0/debian/patches/series --- python-requests-unixsocket-0.3.0/debian/patches/series 2024-02-14 03:17:03.000000000 -0700 +++ python-requests-unixsocket-0.3.0/debian/patches/series 2024-02-15 00:50:31.000000000 -0700 @@ -1 +1,2 @@ 0001-Inherit-HTTPConnection-through-urllib3.connection-no.patch +0002-fix-HEAD-method-tests.patch