Skip to content

bpo-38275: Skip ssl tests for disabled versions #16386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 26, 2019

Conversation

tiran
Copy link
Member

@tiran tiran commented Sep 25, 2019

test_ssl now handles disabled TLS/SSL versions better. OpenSSL's crypto
policy and run-time settings are recognized and tests for disabled versions
are skipped.

Signed-off-by: Christian Heimes christian@python.org

https://bugs.python.org/issue38275

Automerge-Triggered-By: @tiran

test_ssl now handles disabled TLS/SSL versions better. OpenSSL's crypto
policy and run-time settings are recognized and tests for disabled versions
are skipped.

Signed-off-by: Christian Heimes <christian@python.org>
@tiran tiran force-pushed the bpo38275-tls-version branch from c3fdca3 to 7688b92 Compare September 26, 2019 10:04
Some platforms / vendors override OpenSSL's defaults with a more strict
crypto policy. Make tests accept more minimum versions.

Signed-off-by: Christian Heimes <christian@python.org>
@tiran tiran force-pushed the bpo38275-tls-version branch from 7688b92 to 9cba929 Compare September 26, 2019 10:05
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

This PR basically only adds helper function to factorize the code in test_ssl.py, but it doesn't seem to change the behavior. So it looks safe to me.

@miss-islington
Copy link
Contributor

Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

Sorry @tiran, I had trouble checking out the 3.8 backport branch.
Please backport using cherry_picker on command line.
cherry_picker df6ac7e2b82d921a6e9ff5571b40c6dbcf635581 3.8

@miss-islington miss-islington self-assigned this Sep 26, 2019
@miss-islington
Copy link
Contributor

Sorry, @tiran, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker df6ac7e2b82d921a6e9ff5571b40c6dbcf635581 3.7

@miss-islington
Copy link
Contributor

Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry @tiran, I had trouble checking out the 3.8 backport branch.
Please backport using cherry_picker on command line.
cherry_picker df6ac7e2b82d921a6e9ff5571b40c6dbcf635581 3.8

@bedevere-bot
Copy link

GH-16425 is a backport of this pull request to the 3.8 branch.

tiran added a commit to tiran/cpython that referenced this pull request Sep 26, 2019
test_ssl now handles disabled TLS/SSL versions better. OpenSSL's crypto
policy and run-time settings are recognized and tests for disabled versions
are skipped.

Signed-off-by: Christian Heimes <christian@python.org>

https://bugs.python.org/issue38275
(cherry picked from commit df6ac7e)

Co-authored-by: Christian Heimes <christian@python.org>
@bedevere-bot
Copy link

GH-16427 is a backport of this pull request to the 3.7 branch.

tiran added a commit to tiran/cpython that referenced this pull request Sep 26, 2019
test_ssl now handles disabled TLS/SSL versions better. OpenSSL's crypto
policy and run-time settings are recognized and tests for disabled versions
are skipped.

Signed-off-by: Christian Heimes <christian@python.org>

https://bugs.python.org/issue38275.
(cherry picked from commit df6ac7e)

Co-authored-by: Christian Heimes <christian@python.org>
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x SLES 3.x has failed when building commit df6ac7e.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/16/builds/3824) and take a look at the build logs.
  4. Check if the failure is related to this commit (df6ac7e) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/16/builds/3824

Failed tests:

  • test_ssl

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

403 tests OK.

10 slowest tests:

  • test_concurrent_futures: 2 min 26 sec
  • test_multiprocessing_spawn: 1 min 43 sec
  • test_multiprocessing_forkserver: 1 min 18 sec
  • test_tools: 1 min 6 sec
  • test_tokenize: 1 min 6 sec
  • test_multiprocessing_fork: 1 min 4 sec
  • test_asyncio: 47 sec 663 ms
  • test_lib2to3: 41 sec 680 ms
  • test_io: 39 sec 939 ms
  • test_unicodedata: 34 sec 734 ms

1 test failed:
test_ssl

15 tests skipped:
test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev
test_readline test_sqlite test_startfile test_tix test_tk
test_ttk_guionly test_winconsoleio test_winreg test_winsound
test_zipfile64

1 re-run test:
test_ssl

Total duration: 11 min 57 sec

Click to see traceback logs
Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 215, in wrapper
    if not has_tls_version(version):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 42600)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 53262)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 3231, in test_PROTOCOL_TLS
    if has_tls_version('SSLv3'):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 2808, in test_echo
    if not has_tls_protocol(protocol):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 168, in has_tls_protocol
    return has_tls_version(name[len('PROTOCOL_'):])
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL7 3.x has failed when building commit df6ac7e.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/254/builds/46) and take a look at the build logs.
  4. Check if the failure is related to this commit (df6ac7e) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/254/builds/46

Failed tests:

  • test_ssl

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

404 tests OK.

10 slowest tests:

  • test_concurrent_futures: 2 min 38 sec
  • test_multiprocessing_spawn: 2 min 32 sec
  • test_multiprocessing_forkserver: 1 min 36 sec
  • test_tokenize: 1 min 32 sec
  • test_tools: 1 min 22 sec
  • test_multiprocessing_fork: 1 min 12 sec
  • test_asyncio: 1 min 9 sec
  • test_lib2to3: 1 min 8 sec
  • test_unicodedata: 55 sec 933 ms
  • test_io: 53 sec 59 ms

1 test failed:
test_ssl

14 tests skipped:
test_devpoll test_gdb test_ioctl test_kqueue test_msilib
test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly
test_winconsoleio test_winreg test_winsound test_zipfile64

1 re-run test:
test_ssl

Total duration: 4 min 22 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 215, in wrapper
    if not has_tls_version(version):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 3231, in test_PROTOCOL_TLS
    if has_tls_version('SSLv3'):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 36022)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 59864)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 2808, in test_echo
    if not has_tls_protocol(protocol):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 168, in has_tls_protocol
    return has_tls_version(name[len('PROTOCOL_'):])
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x RHEL 3.x has failed when building commit df6ac7e.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/21/builds/3873) and take a look at the build logs.
  4. Check if the failure is related to this commit (df6ac7e) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/21/builds/3873

Failed tests:

  • test_ssl

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

405 tests OK.

10 slowest tests:

  • test_concurrent_futures: 2 min 29 sec
  • test_multiprocessing_spawn: 1 min 48 sec
  • test_multiprocessing_forkserver: 1 min 18 sec
  • test_tokenize: 1 min 7 sec
  • test_tools: 1 min 6 sec
  • test_multiprocessing_fork: 1 min 5 sec
  • test_asyncio: 47 sec 708 ms
  • test_lib2to3: 43 sec 78 ms
  • test_io: 40 sec 513 ms
  • test_unicodedata: 35 sec 645 ms

1 test failed:
test_ssl

13 tests skipped:
test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev
test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
test_winreg test_winsound test_zipfile64

1 re-run test:
test_ssl

Total duration: 12 min 54 sec

Click to see traceback logs
Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 2808, in test_echo
    if not has_tls_protocol(protocol):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 168, in has_tls_protocol
    return has_tls_version(name[len('PROTOCOL_'):])
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 33784)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 57354)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 215, in wrapper
    if not has_tls_version(version):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 3231, in test_PROTOCOL_TLS
    if has_tls_version('SSLv3'):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)


Traceback (most recent call last):
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1108)
k

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL7 LTO + PGO 3.x has failed when building commit df6ac7e.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/258/builds/46) and take a look at the build logs.
  4. Check if the failure is related to this commit (df6ac7e) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/258/builds/46

Failed tests:

  • test_ssl

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

404 tests OK.

10 slowest tests:

  • test_concurrent_futures: 2 min 42 sec
  • test_multiprocessing_spawn: 2 min 29 sec
  • test_tokenize: 1 min 37 sec
  • test_multiprocessing_forkserver: 1 min 34 sec
  • test_tools: 1 min 21 sec
  • test_multiprocessing_fork: 1 min 17 sec
  • test_lib2to3: 1 min 15 sec
  • test_asyncio: 1 min 2 sec
  • test_io: 47 sec 922 ms
  • test_unicodedata: 35 sec 507 ms

1 test failed:
test_ssl

14 tests skipped:
test_devpoll test_gdb test_ioctl test_kqueue test_msilib
test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly
test_winconsoleio test_winreg test_winsound test_zipfile64

1 re-run test:
test_ssl

Total duration: 4 min 3 sec

Click to see traceback logs
Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 215, in wrapper
    if not has_tls_version(version):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 60878)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 3231, in test_PROTOCOL_TLS
    if has_tls_version('SSLv3'):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 2808, in test_echo
    if not has_tls_protocol(protocol):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 168, in has_tls_protocol
    return has_tls_version(name[len('PROTOCOL_'):])
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 33590)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1108)
k

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL7 LTO 3.x has failed when building commit df6ac7e.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/283/builds/47) and take a look at the build logs.
  4. Check if the failure is related to this commit (df6ac7e) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/283/builds/47

Failed tests:

  • test_ssl

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

404 tests OK.

10 slowest tests:

  • test_concurrent_futures: 2 min 47 sec
  • test_multiprocessing_spawn: 2 min 29 sec
  • test_tokenize: 1 min 51 sec
  • test_multiprocessing_forkserver: 1 min 32 sec
  • test_tools: 1 min 21 sec
  • test_multiprocessing_fork: 1 min 13 sec
  • test_asyncio: 1 min 12 sec
  • test_lib2to3: 1 min 12 sec
  • test_io: 47 sec 364 ms
  • test_unicodedata: 41 sec 775 ms

1 test failed:
test_ssl

14 tests skipped:
test_devpoll test_gdb test_ioctl test_kqueue test_msilib
test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly
test_winconsoleio test_winreg test_winsound test_zipfile64

1 re-run test:
test_ssl

Total duration: 4 min 31 sec

Click to see traceback logs
Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 54534)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 3231, in test_PROTOCOL_TLS
    if has_tls_version('SSLv3'):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 215, in wrapper
    if not has_tls_version(version):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 2808, in test_echo
    if not has_tls_protocol(protocol):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 168, in has_tls_protocol
    return has_tls_version(name[len('PROTOCOL_'):])
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 57622)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot PPC64 Fedora 3.x has failed when building commit df6ac7e.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/53/builds/3789) and take a look at the build logs.
  4. Check if the failure is related to this commit (df6ac7e) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/53/builds/3789

Failed tests:

  • test_ssl

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

405 tests OK.

10 slowest tests:

  • test_concurrent_futures: 2 min 37 sec
  • test_multiprocessing_spawn: 2 min 24 sec
  • test_tokenize: 2 min 21 sec
  • test_tools: 2 min 11 sec
  • test_lib2to3: 1 min 30 sec
  • test_multiprocessing_forkserver: 1 min 28 sec
  • test_unicodedata: 1 min 14 sec
  • test_asyncio: 1 min 13 sec
  • test_multiprocessing_fork: 1 min 10 sec
  • test_io: 55 sec 692 ms

1 test failed:
test_ssl

13 tests skipped:
test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev
test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
test_winreg test_winsound test_zipfile64

1 re-run test:
test_ssl

Total duration: 19 min 21 sec

Click to see traceback logs
Traceback (most recent call last):
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 44996)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 215, in wrapper
    if not has_tls_version(version):
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 3231, in test_PROTOCOL_TLS
    if has_tls_version('SSLv3'):
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 60908)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 2808, in test_echo
    if not has_tls_protocol(protocol):
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 168, in has_tls_protocol
    return has_tls_version(name[len('PROTOCOL_'):])
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot x86 Gentoo Installed with X 3.x has failed when building commit df6ac7e.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/103/builds/3148) and take a look at the build logs.
  4. Check if the failure is related to this commit (df6ac7e) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/103/builds/3148

Failed tests:

  • test_ssl

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

406 tests OK.

1 test failed:
test_ssl

12 tests skipped:
test_asdl_parser test_check_c_globals test_clinic test_devpoll
test_gdb test_kqueue test_msilib test_startfile test_winconsoleio
test_winreg test_winsound test_zipfile64

1 re-run test:
test_ssl

Total duration: 25 min 42 sec

Click to see traceback logs
Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 50952)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 2808, in test_echo
    if not has_tls_protocol(protocol):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 168, in has_tls_protocol
    return has_tls_version(name[len('PROTOCOL_'):])
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 215, in wrapper
    if not has_tls_version(version):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 49870)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 3231, in test_PROTOCOL_TLS
    if has_tls_version('SSLv3'):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot x86 Gentoo Non-Debug with X 3.x has failed when building commit df6ac7e.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/99/builds/3377) and take a look at the build logs.
  4. Check if the failure is related to this commit (df6ac7e) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/99/builds/3377

Failed tests:

  • test_ssl

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

410 tests OK.

10 slowest tests:

  • test_concurrent_futures: 3 min 47 sec
  • test_multiprocessing_spawn: 3 min 45 sec
  • test_tokenize: 3 min 35 sec
  • test_tools: 2 min 33 sec
  • test_lib2to3: 2 min 18 sec
  • test_asyncio: 1 min 59 sec
  • test_multiprocessing_forkserver: 1 min 56 sec
  • test_multiprocessing_fork: 1 min 24 sec
  • test_unicodedata: 1 min 23 sec
  • test_io: 1 min 10 sec

1 test failed:
test_ssl

8 tests skipped:
test_devpoll test_kqueue test_msilib test_startfile
test_winconsoleio test_winreg test_winsound test_zipfile64

1 re-run test:
test_ssl

Total duration: 28 min 14 sec

Click to see traceback logs
Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 54012)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 215, in wrapper
    if not has_tls_version(version):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 3231, in test_PROTOCOL_TLS
    if has_tls_version('SSLv3'):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 2808, in test_echo
    if not has_tls_protocol(protocol):
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 168, in has_tls_protocol
    return has_tls_version(name[len('PROTOCOL_'):])
  File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 40140)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)


Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
k

tiran added a commit to tiran/cpython that referenced this pull request Sep 26, 2019
Check presence of SSLContext.minimum_version to make tests pass with
old versions of OpenSSL.

Signed-off-by: Christian Heimes <christian@python.org>
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot x86-64 High Sierra 3.x has failed when building commit df6ac7e.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/145/builds/2495) and take a look at the build logs.
  4. Check if the failure is related to this commit (df6ac7e) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/145/builds/2495

Failed tests:

  • test_ssl

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

402 tests OK.

10 slowest tests:

  • test_multiprocessing_spawn: 3 min 39 sec
  • test_concurrent_futures: 3 min 30 sec
  • test_tokenize: 3 min 15 sec
  • test_tools: 2 min 50 sec
  • test_multiprocessing_forkserver: 2 min 27 sec
  • test_lib2to3: 2 min 2 sec
  • test_unicodedata: 1 min 50 sec
  • test_asyncio: 1 min 41 sec
  • test_logging: 1 min 2 sec
  • test_io: 1 min 2 sec

1 test failed:
test_ssl

16 tests skipped:
test_devpoll test_epoll test_gdb test_ioctl test_msilib
test_multiprocessing_fork test_ossaudiodev test_spwd
test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
test_winreg test_winsound test_zipfile64

1 re-run test:
test_ssl

Total duration: 25 min 41 sec

Click to see traceback logs
Traceback (most recent call last):
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 3234, in test_PROTOCOL_TLS
    if has_tls_version('TLSv1'):
  File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1108)
k


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 215, in wrapper
    if not has_tls_version(version):
  File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 60792)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1108)
 server:  new connection from ('127.0.0.1', 61630)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
k


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 2808, in test_echo
    if not has_tls_protocol(protocol):
  File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 168, in has_tls_protocol
    return has_tls_version(name[len('PROTOCOL_'):])
  File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 193, in has_tls_version
    ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
AttributeError: 'SSLContext' object has no attribute 'minimum_version'


Traceback (most recent call last):
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 2303, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1040, in _create
    self.do_handshake()
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1108)
k


Traceback (most recent call last):
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 2447, in run
    self.write(msg.lower())
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_ssl.py", line 2366, in write
    return self.sslconn.write(bytes)
   File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ssl.py", line 1118, in write
    return self._sslobj.write(data)
 BrokenPipeError: [Errno 32] Broken pipe
k

tiran added a commit that referenced this pull request Sep 26, 2019
Check presence of SSLContext.minimum_version to make tests pass with
old versions of OpenSSL.

Signed-off-by: Christian Heimes <christian@python.org>
tiran added a commit to tiran/cpython that referenced this pull request Sep 26, 2019
Check presence of SSLContext.minimum_version to make tests pass with
old versions of OpenSSL.

Signed-off-by: Christian Heimes <christian@python.org>
tiran added a commit to tiran/cpython that referenced this pull request Sep 26, 2019
Check presence of SSLContext.minimum_version to make tests pass with
old versions of OpenSSL.

Signed-off-by: Christian Heimes <christian@python.org>
tiran added a commit that referenced this pull request Sep 26, 2019
…16425)

test_ssl now handles disabled TLS/SSL versions better. OpenSSL's crypto
policy and run-time settings are recognized and tests for disabled versions
are skipped.

Signed-off-by: Christian Heimes <christian@python.org>

https://bugs.python.org/issue38275
(cherry picked from commit df6ac7e)
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x Debian 3.8 has failed when building commit 1931132.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/216/builds/463) and take a look at the build logs.
  4. Check if the failure is related to this commit (1931132) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/216/builds/463

Failed tests:

  • test_pty
  • test_openpty
  • test_os
  • test_asyncio

Failed subtests:

  • test_read_pty_output - test.test_asyncio.test_events.EPollEventLoopTests
  • test_fork - test.test_pty.PtyTest
  • test_bidirectional_pty - test.test_asyncio.test_events.SelectEventLoopTests
  • test_write_pty - test.test_asyncio.test_events.SelectEventLoopTests
  • test_bidirectional_pty - test.test_asyncio.test_events.PollEventLoopTests
  • test_write_pty - test.test_asyncio.test_events.PollEventLoopTests
  • test_read_pty_output - test.test_asyncio.test_events.PollEventLoopTests
  • test_openpty - test.test_os.FDInheritanceTests
  • test_bidirectional_pty - test.test_asyncio.test_events.EPollEventLoopTests
  • test - test.test_openpty.OpenptyTest
  • test_write_pty - test.test_asyncio.test_events.EPollEventLoopTests
  • test_read_pty_output - test.test_asyncio.test_events.SelectEventLoopTests

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

406 tests OK.

10 slowest tests:

  • test_concurrent_futures: 2 min 22 sec
  • test_multiprocessing_spawn: 1 min 36 sec
  • test_multiprocessing_forkserver: 1 min 10 sec
  • test_multiprocessing_fork: 1 min 4 sec
  • test_tokenize: 1 min 824 ms
  • test_tools: 54 sec 319 ms
  • test_asyncio: 45 sec 434 ms
  • test_gdb: 43 sec 951 ms
  • test_lib2to3: 40 sec 308 ms
  • test_io: 38 sec 439 ms

4 tests failed:
test_asyncio test_openpty test_os test_pty

13 tests skipped:
test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev
test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
test_winreg test_winsound test_zipfile64

4 re-run tests:
test_asyncio test_openpty test_os test_pty

Total duration: 12 min 7 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.8.edelsohn-debian-z/build/Lib/test/support/__init__.py", line 644, in wrapper
    return func(*args, **kw)
  File "/home/dje/cpython-buildarea/3.8.edelsohn-debian-z/build/Lib/test/test_asyncio/test_events.py", line 1502, in test_bidirectional_pty
    master, read_slave = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.8.edelsohn-debian-z/build/Lib/test/test_os.py", line 3545, in test_openpty
    master_fd, slave_fd = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.8.edelsohn-debian-z/build/Lib/test/support/__init__.py", line 644, in wrapper
    return func(*args, **kw)
  File "/home/dje/cpython-buildarea/3.8.edelsohn-debian-z/build/Lib/test/test_asyncio/test_events.py", line 1458, in test_write_pty
    master, slave = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.8.edelsohn-debian-z/build/Lib/test/test_openpty.py", line 11, in test
    master, slave = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.8.edelsohn-debian-z/build/Lib/test/test_pty.py", line 130, in test_fork
    pid, master_fd = pty.fork()
  File "/home/dje/cpython-buildarea/3.8.edelsohn-debian-z/build/Lib/pty.py", line 96, in fork
    master_fd, slave_fd = openpty()
  File "/home/dje/cpython-buildarea/3.8.edelsohn-debian-z/build/Lib/pty.py", line 29, in openpty
    master_fd, slave_name = _open_terminal()
  File "/home/dje/cpython-buildarea/3.8.edelsohn-debian-z/build/Lib/pty.py", line 59, in _open_terminal
    raise OSError('out of pty devices')
OSError: out of pty devices


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.8.edelsohn-debian-z/build/Lib/test/test_asyncio/test_events.py", line 1360, in test_read_pty_output
    master, slave = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory

jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
test_ssl now handles disabled TLS/SSL versions better. OpenSSL's crypto
policy and run-time settings are recognized and tests for disabled versions
are skipped.

Signed-off-by: Christian Heimes <christian@python.org>



https://bugs.python.org/issue38275
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
Check presence of SSLContext.minimum_version to make tests pass with
old versions of OpenSSL.

Signed-off-by: Christian Heimes <christian@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants