You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some test_ssl and test_asyncio tests fail with OpenSSL 1.1.1 on Python 3.4 and 3.5 #80757
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-09-25.12:32:19.144>created_at=<Date2019-04-09.14:41:46.254>labels= ['tests']
title='Some test_ssl and test_asyncio tests fail with OpenSSL 1.1.1 on Python 3.4 and 3.5'updated_at=<Date2019-09-25.12:32:19.137>user='https://github.com/vstinner'
Traceback (most recent call last):
File "/home/vstinner/prog/python/3.5/Lib/test/test_ssl.py", line 3064, in test_default_ecdh_curveself.assertIn("ECDH", s.cipher()[0])
AssertionError: 'ECDH' not found in 'TLS_AES_256_GCM_SHA384'
Traceback (most recent call last):
File "/home/vstinner/prog/python/3.5/Lib/test/test_asyncio/test_events.py", line 1172, in test_create_server_ssl_match_failed
proto.transport.close()
AttributeError: 'NoneType' object has no attribute 'close'
Traceback (most recent call last):
File "/home/vstinner/prog/python/3.5/Lib/test/test_asyncio/test_events.py", line 1172, in test_create_server_ssl_match_failed
proto.transport.close()
AttributeError: 'NoneType' object has no attribute 'close'
Traceback (most recent call last):
File "/home/vstinner/prog/python/3.5/Lib/test/test_asyncio/test_events.py", line 1172, in test_create_server_ssl_match_failed
proto.transport.close()
AttributeError: 'NoneType' object has no attribute 'close'
New changeset 4d1c254 by larryhastings (Victor Stinner) in branch '3.5': bpo-36576: Skip test_ssl and test_asyncio tests failing with OpenSSL 1.1.1 (bpo-12694) 4d1c254
Activity
vstinner commentedon Apr 9, 2019
On Fedora 29, test_ssl and test_asyncio when Python 3.5 is linked with OpenSSL 1.1.1b (Fedora package openssl-1.1.1b-3.fc29.x86_64):
test_ssl:
test_asyncio:
Fixing these tests would require to backport some ssl features, and I don't think that it's worth it.
Attached PR 12694 skip these tests on OpenSSL 1.1.1.
Note: these tests pass with OpenSSL 1.1.0.
FYI for Fedora, we also care of having the Python 3.4 test suite passing with OpenSSL 1.1.1 and so we will maintain a similar change downstream.
======================================================================
FAIL: test_options (test.test_ssl.ContextTests)
----------------------------------------------------------------------
======================================================================
FAIL: test_alpn_protocols (test.test_ssl.ThreadedTests)
----------------------------------------------------------------------
======================================================================
FAIL: test_default_ecdh_curve (test.test_ssl.ThreadedTests)
----------------------------------------------------------------------
======================================================================
FAIL: test_shared_ciphers (test.test_ssl.ThreadedTests)
----------------------------------------------------------------------
======================================================================
ERROR: test_create_server_ssl_match_failed (test.test_asyncio.test_events.EPollEventLoopTests)
----------------------------------------------------------------------
======================================================================
ERROR: test_create_server_ssl_match_failed (test.test_asyncio.test_events.PollEventLoopTests)
----------------------------------------------------------------------
======================================================================
ERROR: test_create_server_ssl_match_failed (test.test_asyncio.test_events.SelectEventLoopTests)
----------------------------------------------------------------------
vstinner commentedon Apr 9, 2019
I wasn't sure if tests pass or not on OpenSSL 1.1.0. My colleague Miro checked: the full Python 3.5 test suite pass on Fedora 28 with OpenSSL 1.1.0.
python35 is linked to OpenSSL 1.1.0 on Fedora 28:
https://src.fedoraproject.org/rpms/python35/blob/f28/f/python35.spec#_121
Example of successful python35 build:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1236291
larryhastings commentedon Sep 7, 2019
New changeset 4d1c254 by larryhastings (Victor Stinner) in branch '3.5':
bpo-36576: Skip test_ssl and test_asyncio tests failing with OpenSSL 1.1.1 (bpo-12694)
4d1c254
vstinner commentedon Sep 25, 2019
Python 3.4 reached end of life. Python 3.5 is fixed. I close the issue.