summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2023-03-20 16:03:44 +0100
committerYann Ylavic <ylavic@apache.org>2023-03-20 16:03:44 +0100
commit43987d4e73a403fedd1150e08283f11ad0059011 (patch)
tree94c7016b00ca8623a6f74a899b5b056afc449b9a
parentpytests: Use python3-multipart lib. (diff)
downloadapache2-43987d4e73a403fedd1150e08283f11ad0059011.tar.xz
apache2-43987d4e73a403fedd1150e08283f11ad0059011.zip
pytests: test_tls_05_proto_1_3: Don't rely on TlsTestEnv.curl_supports_tls_1_3() (always False).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908575 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/modules/tls/test_05_proto.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/modules/tls/test_05_proto.py b/test/modules/tls/test_05_proto.py
index 447d052b42..c5eea7d956 100644
--- a/test/modules/tls/test_05_proto.py
+++ b/test/modules/tls/test_05_proto.py
@@ -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