Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 515d74c

Browse files
Test the right connection type.
1 parent 37e122d commit 515d74c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_SSLContext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_HTTPConnection_with_missing_certs(self):
7171
succeeded = False
7272
threwExpectedException = False
7373
try:
74-
HTTPConnection('http2bin.org', 443)
74+
hyper.HTTP20Connection('http2bin.org', 443)
7575
succeeded = True
7676
except hyper.common.exceptions.MissingCertFile:
7777
threwExpectedException = True
@@ -96,7 +96,7 @@ def test_HTTPConnection_with_missing_certs_and_custom_context(self):
9696
context.set_npn_protocols(['h2', 'h2-15'])
9797
context.options |= ssl.OP_NO_COMPRESSION
9898

99-
conn = HTTPConnection('http2bin.org', 443, ssl_context=context)
99+
conn = hyper.HTTP20Connection('http2bin.org', 443, ssl_context=context)
100100

101101
hyper.tls.cert_loc = backup_cert_loc
102102

0 commit comments

Comments
 (0)