[Python-modules-team] Bug#844358: pytest-httpbin: FTBFS (test_chunked_encoding[https] FAILED)

Daniel Stender debian at danielstender.com
Mon Nov 14 19:58:18 UTC 2016


Source: pytest-httpbin
Version: 0.2.0-1
Severity: serious
Justification: fails to build from source

The package currently doesn't build:

<cut>
tests/test_httpbin.py::test_chunked_encoding[https] FAILED

=================================== FAILURES ===================================
_________________________ test_chunked_encoding[https] _________________________

httpbin_both = <SecureServer(<class 'pytest_httpbin.serve.SecureServer'>, started 140137936086784)>

    def test_chunked_encoding(httpbin_both):
>       assert requests.get(httpbin_both.url + '/stream/20').status_code == 200

tests/test_httpbin.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python2.7/dist-packages/requests/api.py:70: in get
    return request('get', url, params=params, **kwargs)
/usr/lib/python2.7/dist-packages/requests/api.py:56: in request
    return session.request(method=method, url=url, **kwargs)
/usr/lib/python2.7/dist-packages/requests/sessions.py:475: in request
    resp = self.send(prep, **send_kwargs)
/usr/lib/python2.7/dist-packages/requests/sessions.py:628: in send
    r.content
/usr/lib/python2.7/dist-packages/requests/models.py:755: in content
    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def generate():
        # Special case for urllib3.
        if hasattr(self.raw, 'stream'):
            try:
                for chunk in self.raw.stream(chunk_size, decode_content=True):
                    yield chunk
            except ProtocolError as e:
>               raise ChunkedEncodingError(e)
E               ChunkedEncodingError: ("Connection broken: error(0, 'Error')", error(0, 'Error'))

/usr/lib/python2.7/dist-packages/requests/models.py:679: ChunkedEncodingError
----------------------------- Captured stderr call -----------------------------
127.0.0.1 - - [14/Nov/2016 19:54:16] "GET /stream/20 HTTP/1.1" 200 5430
!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!
====================== 1 failed, 8 passed in 1.36 seconds ======================
</cut>

I'll get into that, soon.

DS

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Python-modules-team mailing list