Skip to content
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

ssl.SSLError explicit support #2297

Merged
merged 20 commits into from
Oct 4, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Python versions capability.
hellysmile committed Sep 29, 2017
commit 071897af2debe679340863424e6dff2a12485153
9 changes: 7 additions & 2 deletions tests/test_connector.py
Original file line number Diff line number Diff line change
@@ -1315,8 +1315,13 @@ def handler(request):

r.release()
first_conn = next(iter(conn._conns.values()))[0][0]
self.assertIs(
first_conn.transport._sslcontext, sslcontext)

try:
_sslcontext = first_conn.transport._ssl_protocol._sslcontext
except AttributeError:
_sslcontext = first_conn.transport._sslcontext

self.assertIs(_sslcontext, sslcontext)
r.close()

session.close()