# PyPy 3.5 v6.0.0: inconsistent OpenSSL bindings

**URL:** <https://travis-ci.community/t/pypy-3-5-v6-0-0-inconsistent-openssl-bindings/1614>\
**Category:** Python\
**Tags:** build-env, python, bug\
**Created:** [December 31, 2018, 12:29pm UTC](https://travis-ci.community/t/pypy-3-5-v6-0-0-inconsistent-openssl-bindings/1614 "2018-12-31T12:29:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webknjaz](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/webknjaz/32/34_2.png) [@webknjaz](https://travis-ci.community/u/webknjaz)\
**Post date:** [December 31, 2018, 12:29pm UTC](https://travis-ci.community/t/pypy-3-5-v6-0-0-inconsistent-openssl-bindings/1614/1 "2018-12-31T12:29:58Z")

</div>

So there’s two `xenial` jobs with PyPy v6.0.0 set up. But tests are behaving inconsistently.

Turns out, that PyPy 2.7 v6.0.0 is linked against OpenSSL 1.1, while

```auto
pypy2.7-6.0 is not installed; attempting download
Downloading archive: https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/16.04/x86_64/pypy2.7-6.0.tar.bz2
$ curl -sSf -o pypy2.7-6.0.tar.bz2 ${archive_url}
$ sudo tar xjf pypy2.7-6.0.tar.bz2 --directory /

$ python --version
Python 2.7.13 (ab0b9caf307db6592905a80b8faffd69b39005b8, Apr 30 2018, 08:21:35)
[PyPy 6.0.0 with GCC 7.2.0]

$ python -c 'import ssl; print("\nOPENSSL_VERSION: " + ssl.OPENSSL_VERSION + "\nOPENSSL_VERSION_INFO: " + repr(ssl.OPENSSL_VERSION_INFO) + "\nOPENSSL_VERSION_NUMBER: " + repr(ssl.OPENSSL_VERSION_NUMBER))'
OPENSSL_VERSION: OpenSSL 1.1.0h 27 Mar 2018
OPENSSL_VERSION_INFO: (1, 1, 0, 8, 15)
OPENSSL_VERSION_NUMBER: 269484175

```

([https://travis-ci.org/cherrypy/cheroot/jobs/473814367](https://travis-ci.org/cherrypy/cheroot/jobs/473814367))

```auto
pypy3.5-6.0 is not installed; attempting download
Downloading archive: https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/16.04/x86_64/pypy3.5-6.0.tar.bz2
$ curl -sSf -o pypy3.5-6.0.tar.bz2 ${archive_url}
$ sudo tar xjf pypy3.5-6.0.tar.bz2 --directory /

$ python --version
Python 3.5.3 (fdd60ed87e94, Apr 24 2018, 06:10:04)
[PyPy 6.0.0 with GCC 6.2.0 20160901]

$ python -c 'import ssl; print("\nOPENSSL_VERSION: " + ssl.OPENSSL_VERSION + "\nOPENSSL_VERSION_INFO: " + repr(ssl.OPENSSL_VERSION_INFO) + "\nOPENSSL_VERSION_NUMBER: " + repr(ssl.OPENSSL_VERSION_NUMBER))'
OPENSSL_VERSION: OpenSSL 1.0.1f 6 Jan 2014
OPENSSL_VERSION_INFO: (1, 0, 1, 6, 15)
OPENSSL_VERSION_NUMBER: 268439663

```

([https://travis-ci.org/cherrypy/cheroot/jobs/473814368](https://travis-ci.org/cherrypy/cheroot/jobs/473814368))

I think that they both should have the same OpenSSL backend version to avoid inconsistencies and unpleasant side-effects.

cc @BanzaiMan
