Source: python-requests-unixsocket Version: 0.3.0-3 Severity: normal Tags: ftbfs X-Debbugs-Cc: daniel.bung...@canonical.com
Dear Maintainer, While doing an upload to Ubuntu for another python-requests-unixsocket fix (Debian bug 1063892), we observed that the package may FTBFS on the testsuite. The HEAD request portion of some of the tests may fail, apparently due to particular write/read patterns that can leave excess data around for the next test request - the unread body. In local testing the failure rate was small (< 5%), but on official buidlers it was apparently 100%, so system load is likely a factor. To that end an upstream PR has been opened: https://github.com/msabramo/requests-unixsocket/pull/71 --- 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 ' Also filed in Ubuntu as https://pad.lv/2053154 -Dan