Skip to content

Tests failing on Arch #660

@WhyNotHugo

Description

@WhyNotHugo

When updating the Arch package to 0.16.0, I noticed some tests failing locally. We're currently at python 3.6.2.

______________________________________________________________________________________ test_request_ssl _______________________________________________________________________________________
/usr/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:441: in wrap_socket
    cnx.do_handshake()
/usr/lib/python3.6/site-packages/OpenSSL/SSL.py:1716: in do_handshake
    self._raise_ssl_error(self._ssl, result)
/usr/lib/python3.6/site-packages/OpenSSL/SSL.py:1456: in _raise_ssl_error
    _raise_current_error()
/usr/lib/python3.6/site-packages/OpenSSL/_util.py:54: in exception_from_error_queue
    raise exception_type(errors)
E   OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]

During handling of the above exception, another exception occurred:
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:601: in urlopen
    chunked=chunked)
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:346: in _make_request
    self._validate_conn(conn)
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:850: in _validate_conn
    conn.connect()
/usr/lib/python3.6/site-packages/urllib3/connection.py:326: in connect
    ssl_context=context)
/usr/lib/python3.6/site-packages/urllib3/util/ssl_.py:329: in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
/usr/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:448: in wrap_socket
    raise ssl.SSLError('bad handshake: %r' % e)
E   ssl.SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",)

During handling of the above exception, another exception occurred:
/usr/lib/python3.6/site-packages/requests/adapters.py:440: in send
    timeout=timeout
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:639: in urlopen
    _stacktrace=sys.exc_info()[2])
/usr/lib/python3.6/site-packages/urllib3/util/retry.py:388: in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
E   urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='127.0.0.1', port=42479): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

During handling of the above exception, another exception occurred:
tests/system/utils/test_main.py:32: in test_request_ssl
    http.request('GET', httpsserver.url)
vdirsyncer/http.py:164: in request
    r = func(method, url, **kwargs)
/usr/lib/python3.6/site-packages/requests/sessions.py:502: in request
    resp = self.send(prep, **send_kwargs)
/usr/lib/python3.6/site-packages/requests/sessions.py:612: in send
    r = adapter.send(request, **kwargs)
/usr/lib/python3.6/site-packages/requests/adapters.py:504: in send
    raise ConnectionError(e, request=request)
E   requests.exceptions.ConnectionError: HTTPSConnectionPool(host='127.0.0.1', port=42479): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
_________________________________________________ test_request_ssl_fingerprints[94:FD:7A:CB:50:75:A4:69:82:0A:F8:23:DF:07:FC:69:3E:CD:90:CA] __________________________________________________
/usr/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:441: in wrap_socket
    cnx.do_handshake()
/usr/lib/python3.6/site-packages/OpenSSL/SSL.py:1716: in do_handshake
    self._raise_ssl_error(self._ssl, result)
/usr/lib/python3.6/site-packages/OpenSSL/SSL.py:1456: in _raise_ssl_error
    _raise_current_error()
/usr/lib/python3.6/site-packages/OpenSSL/_util.py:54: in exception_from_error_queue
    raise exception_type(errors)
E   OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]

During handling of the above exception, another exception occurred:
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:601: in urlopen
    chunked=chunked)
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:346: in _make_request
    self._validate_conn(conn)
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:850: in _validate_conn
    conn.connect()
/usr/lib/python3.6/site-packages/urllib3/connection.py:326: in connect
    ssl_context=context)
/usr/lib/python3.6/site-packages/urllib3/util/ssl_.py:329: in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
/usr/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:448: in wrap_socket
    raise ssl.SSLError('bad handshake: %r' % e)
E   ssl.SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",)

During handling of the above exception, another exception occurred:
/usr/lib/python3.6/site-packages/requests/adapters.py:440: in send
    timeout=timeout
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:639: in urlopen
    _stacktrace=sys.exc_info()[2])
/usr/lib/python3.6/site-packages/urllib3/util/retry.py:388: in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
E   urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='127.0.0.1', port=43889): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

During handling of the above exception, another exception occurred:
tests/system/utils/test_main.py:57: in test_request_ssl_fingerprints
    verify_fingerprint=fingerprint)
vdirsyncer/http.py:164: in request
    r = func(method, url, **kwargs)
/usr/lib/python3.6/site-packages/requests/sessions.py:502: in request
    resp = self.send(prep, **send_kwargs)
/usr/lib/python3.6/site-packages/requests/sessions.py:612: in send
    r = adapter.send(request, **kwargs)
/usr/lib/python3.6/site-packages/requests/adapters.py:504: in send
    raise ConnectionError(e, request=request)
E   requests.exceptions.ConnectionError: HTTPSConnectionPool(host='127.0.0.1', port=43889): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
------------------------------------------------------------------------------------ Captured stderr call -------------------------------------------------------------------------------------
127.0.0.1 - - [08/Aug/2017 10:23:51] "GET / HTTP/1.1" 200 -
_______________________________________________________ test_request_ssl_fingerprints[19:90:F7:23:94:F2:EF:AB:2B:64:2D:57:3D:25:95:2D] ________________________________________________________
/usr/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:441: in wrap_socket
    cnx.do_handshake()
/usr/lib/python3.6/site-packages/OpenSSL/SSL.py:1716: in do_handshake
    self._raise_ssl_error(self._ssl, result)
/usr/lib/python3.6/site-packages/OpenSSL/SSL.py:1456: in _raise_ssl_error
    _raise_current_error()
/usr/lib/python3.6/site-packages/OpenSSL/_util.py:54: in exception_from_error_queue
    raise exception_type(errors)
E   OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]

During handling of the above exception, another exception occurred:
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:601: in urlopen
    chunked=chunked)
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:346: in _make_request
    self._validate_conn(conn)
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:850: in _validate_conn
    conn.connect()
/usr/lib/python3.6/site-packages/urllib3/connection.py:326: in connect
    ssl_context=context)
/usr/lib/python3.6/site-packages/urllib3/util/ssl_.py:329: in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
/usr/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:448: in wrap_socket
    raise ssl.SSLError('bad handshake: %r' % e)
E   ssl.SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",)

During handling of the above exception, another exception occurred:
/usr/lib/python3.6/site-packages/requests/adapters.py:440: in send
    timeout=timeout
/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:639: in urlopen
    _stacktrace=sys.exc_info()[2])
/usr/lib/python3.6/site-packages/urllib3/util/retry.py:388: in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
E   urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='127.0.0.1', port=33183): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

During handling of the above exception, another exception occurred:
tests/system/utils/test_main.py:57: in test_request_ssl_fingerprints
    verify_fingerprint=fingerprint)
vdirsyncer/http.py:164: in request
    r = func(method, url, **kwargs)
/usr/lib/python3.6/site-packages/requests/sessions.py:502: in request
    resp = self.send(prep, **send_kwargs)
/usr/lib/python3.6/site-packages/requests/sessions.py:612: in send
    r = adapter.send(request, **kwargs)
/usr/lib/python3.6/site-packages/requests/adapters.py:504: in send
    raise ConnectionError(e, request=request)
E   requests.exceptions.ConnectionError: HTTPSConnectionPool(host='127.0.0.1', port=33183): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
------------------------------------------------------------------------------------ Captured stderr call -------------------------------------------------------------------------------------
127.0.0.1 - - [08/Aug/2017 10:23:52] "GET / HTTP/1.1" 200 -
====================================================================================== warnings summary =======================================================================================
None
  pytest_funcarg__httpserver: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
  pytest_funcarg__httpsserver: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
  pytest_funcarg__smtpserver: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.

-- Docs: http://doc.pytest.org/en/latest/warnings.html
=============================================================== 3 failed, 333 passed, 178 skipped, 3 warnings in 16.36 seconds ================================================================
make: *** [Makefile:37: test] Error 1
=

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions