]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
pytests: test_tls_05_proto_1_3: Don't rely on TlsTestEnv.curl_supports_tls_1_3()...
authorYann Ylavic <ylavic@apache.org>
Mon, 20 Mar 2023 15:03:44 +0000 (15:03 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 20 Mar 2023 15:03:44 +0000 (15:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908575 13f79535-47bb-0310-9956-ffa450edef68

test/modules/tls/test_05_proto.py

index 447d052b4226619936db02e33f449acf0bfc42fd..c5eea7d9566cf9af82798c1263c2860342ba5934 100644 (file)
@@ -33,13 +33,10 @@ class TestProto:
     def test_tls_05_proto_1_2(self, env):
         r = env.tls_get(env.domain_b, "/index.json", options=["--tlsv1.2"])
         assert r.exit_code == 0, r.stderr
-        if TlsTestEnv.curl_supports_tls_1_3():
-            r = env.tls_get(env.domain_b, "/index.json", options=["--tlsv1.3"])
-            assert r.exit_code == 0, r.stderr
 
     def test_tls_05_proto_1_3(self, env):
         r = env.tls_get(env.domain_a, "/index.json", options=["--tlsv1.3"])
-        if TlsTestEnv.curl_supports_tls_1_3():
+        if True: # testing TlsTestEnv.curl_supports_tls_1_3() is unreliable (curl should support TLS1.3 nowadays..)
             assert r.exit_code == 0, r.stderr
         else:
             assert r.exit_code == 4, r.stderr