summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorWill Childs-Klein <willck93@gmail.com>2024-12-24 18:29:27 (GMT)
committerGitHub <noreply@github.com>2024-12-24 18:29:27 (GMT)
commit418114c139666f33abff937e40ccbbbdce15bc39 (patch)
tree97db70de47e6bb97168b9aeaf6f03b9cb3905443 /Lib/test/test_httplib.py
parent7985d460c731b2c48419a33fc1820f9512bb6f21 (diff)
downloadcpython-418114c139666f33abff937e40ccbbbdce15bc39.zip
cpython-418114c139666f33abff937e40ccbbbdce15bc39.tar.gz
cpython-418114c139666f33abff937e40ccbbbdce15bc39.tar.bz2
gh-128035: Add ssl.HAS_PHA to detect libssl PHA support (GH-128036)
* Add ssl.HAS_PHA to detect libssl Post-Handshake-Auth support Co-authored-by: Tomas R. <tomas.roun8@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r--Lib/test/test_httplib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index 9d853d2..89963da 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -2073,8 +2073,8 @@ class HTTPSTest(TestCase):
def test_tls13_pha(self):
import ssl
- if not ssl.HAS_TLSv1_3:
- self.skipTest('TLS 1.3 support required')
+ if not ssl.HAS_TLSv1_3 or not ssl.HAS_PHA:
+ self.skipTest('TLS 1.3 PHA support required')
# just check status of PHA flag
h = client.HTTPSConnection('localhost', 443)
self.assertTrue(h._context.post_handshake_auth)