diff --git a/tests/test_authentication.py b/tests/test_authentication.py
index 37fc91ed498e854dba19cac85196c2620409a64b..1fbf834d708307279be4adeed4ee2dc157cbffae 100644
--- a/tests/test_authentication.py
+++ b/tests/test_authentication.py
@@ -58,7 +58,7 @@ def test_https_support():
         from http.client import HTTPSConnection
     import ssl
 
-    context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)  # @UndefinedVariable
+    context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)  # @UndefinedVariable
     context.verify_mode = ssl.CERT_REQUIRED
     if hasattr(context, "check_hostname"):
         context.check_hostname = True