[Python-modules-team] Bug#876334: A few tests fail during build

jean-christophe manciot actionmystique at gmail.com
Thu Sep 21 07:08:12 UTC 2017


Package: python-urllib3
Version: debian/1.21.1-1
Sources:
https://anonscm.debian.org/git/python-modules/packages/python-urllib3.git

Building in a sid chroot with:
dpkg-buildpackage --no-sign --build=binary

leads to:
...
======================================================================
ERROR: test_set_ssl_version_to_tlsv1 (test.contrib.test_pyopenssl.TestHTTPS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/test/with_dummyserver/test_https.py",
line 66, in test_set_ssl_version_to_tlsv1
    r = self._pool.request('GET', '/')
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/urllib3/request.py",
line 66, in request
    **urlopen_kw)
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/urllib3/request.py",
line 87, in request_encode_url
    return self.urlopen(method, url, **extra_kw)
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/urllib3/connectionpool.py",
line 630, in urlopen
    raise SSLError(e)
SSLError: ("bad handshake: Error([('SSL routines', 'ssl3_read_bytes',
'tlsv1 alert protocol version')],)",)
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: DEBUG: Starting new HTTPS connection (1): localhost
tornado.general: WARNING: SSL Error on 9 ('::1', 57012, 0, 0): [SSL:
UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:661)
tornado.general: ERROR: Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py",
line 693, in _server_request_loop
    ret = yield conn.read_response(request_delegate)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 870,
in run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
215, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 876,
in run
    yielded = self.gen.throw(*exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py",
line 168, in _read_message
    quiet_exceptions=iostream.StreamClosedError)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 870,
in run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
215, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
SSLError: [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:661)
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_simple (test.contrib.test_pyopenssl.TestHTTPS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/test/with_dummyserver/test_https.py",
line 61, in test_simple
    r = self._pool.request('GET', '/')
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/urllib3/request.py",
line 66, in request
    **urlopen_kw)
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/urllib3/request.py",
line 87, in request_encode_url
    return self.urlopen(method, url, **extra_kw)
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/urllib3/connectionpool.py",
line 630, in urlopen
    raise SSLError(e)
SSLError: ("bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)",)
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: DEBUG: Starting new HTTPS connection (1): localhost
tornado.general: WARNING: SSL Error on 9 (not connected): [SSL:
TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:661)
tornado.general: ERROR: Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py",
line 693, in _server_request_loop
    ret = yield conn.read_response(request_delegate)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 870,
in run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
215, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 876,
in run
    yielded = self.gen.throw(*exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py",
line 168, in _read_message
    quiet_exceptions=iostream.StreamClosedError)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 870,
in run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
215, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
error: [Errno 107] Transport endpoint is not connected
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_discards_connection_on_sslerror
(test.contrib.test_pyopenssl.TestHTTPS_TLSv1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/test/__init__.py",
line 119, in wrapper
    return test(*args, **kwargs)
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/test/with_dummyserver/test_https.py",
line 520, in test_discards_connection_on_sslerror
    self._pool.request('GET', '/')
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/urllib3/request.py",
line 66, in request
    **urlopen_kw)
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/urllib3/request.py",
line 87, in request_encode_url
    return self.urlopen(method, url, **extra_kw)
  File
"/home/actionmystique/src/URLLib3/git-python-urllib3/urllib3/connectionpool.py",
line 630, in urlopen
    raise SSLError(e)
SSLError: ("bad handshake: Error([('SSL routines',
'tls_process_server_hello', 'version too low')],)",)
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: DEBUG: Starting new HTTPS connection (1): localhost
tornado.general: WARNING: SSL Error on 12 ('::1', 50704, 0, 0): [SSL:
WRONG_VERSION_NUMBER] wrong version number (_ssl.c:661)
tornado.general: ERROR: Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py",
line 693, in _server_request_loop
    ret = yield conn.read_response(request_delegate)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 870,
in run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
215, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 876,
in run
    yielded = self.gen.throw(*exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py",
line 168, in _read_message
    quiet_exceptions=iostream.StreamClosedError)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 870,
in run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
215, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:661)
urllib3.connectionpool: DEBUG: Starting new HTTPS connection (2): localhost
tornado.general: WARNING: SSL Error on 12 ('::1', 50706, 0, 0): [SSL:
WRONG_VERSION_NUMBER] wrong version number (_ssl.c:661)
--------------------- >> end captured logging << ---------------------
...

Full log is attached.
-- 
Jean-Christophe Manciot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20170921/7fe41c68/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-urllib3_1.21.1-1_amd64.build
Type: application/octet-stream
Size: 64843 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20170921/7fe41c68/attachment-0001.obj>


More information about the Python-modules-team mailing list