mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Apply suggestions from code review
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -49,6 +49,8 @@ def test_fluent_tls_safe():
|
||||
|
||||
def test_fluent_ssl():
|
||||
hostname = 'www.python.org'
|
||||
# notice that `ssl.PROTOCOL_SSLv23` is just a deprecated alias for `ssl.PROTOCOL_TLS`.
|
||||
# Therefore, we only have this one test using PROTOCOL_SSLv23, to show that we handle this alias correctly.
|
||||
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
||||
|
||||
with socket.create_connection((hostname, 443)) as sock:
|
||||
|
||||
Reference in New Issue
Block a user