summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-01-23 22:30:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-01-23 22:30:26 (GMT)
commitaa7075845cdb8dd44a9991b6fdece6f68fd9ecd1 (patch)
tree5cadb7407e624bd34511726c83342117b1c01d92 /Lib/test/test_ssl.py
parent65aa261eba8a4d9f335adfe826806e12fffa6429 (diff)
downloadcpython-aa7075845cdb8dd44a9991b6fdece6f68fd9ecd1.zip
cpython-aa7075845cdb8dd44a9991b6fdece6f68fd9ecd1.tar.gz
cpython-aa7075845cdb8dd44a9991b6fdece6f68fd9ecd1.tar.bz2
prefer server alpn ordering over the client's
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 711f494..f3da0b1 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -2819,9 +2819,9 @@ else:
server_protocols = ['foo', 'bar', 'milkshake']
protocol_tests = [
(['foo', 'bar'], 'foo'),
- (['bar', 'foo'], 'bar'),
+ (['bar', 'foo'], 'foo'),
(['milkshake'], 'milkshake'),
- (['http/3.0', 'http/4.0'], 'foo')
+ (['http/3.0', 'http/4.0'], None)
]
for client_protocols, expected in protocol_tests:
server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)