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
test.test_ssl.ThreadedTests.test_tls1_3 fails in 2.7 with AttributeError: __exit__ #78999
Activity
xnox commentedon Sep 27, 2018
test.test_ssl.ThreadedTests.test_tls1_3 fails in 2.7 with AttributeError: __exit__
When building python 2.7, update to 20180926 from the 2.7 branch, on Ubuntu 18.10 (cosmic) with OpenSSL 1.1.1 the test_ssl errors out like so:
======================================================================
ERROR: test_tls1_3 (test.test_ssl.ThreadedTests)
----------------------------------------------------------------------
Distribution issue https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1759172
xnox commentedon Sep 28, 2018
Similar client sockets are used in that file, but they are wrapped in extra `with closing(...) as s:`
Is closing() wrapper missing in this test case?
tiran commentedon Sep 28, 2018
Yes, that's it. In Python 2.7, socket classes don't implement the context manager protocol.
csabella commentedon May 29, 2019
Thank you for the report and the pull request. This was fixed as part of bpo-28043, so I'm closing this as a duplicate.