diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-01-23 22:30:26 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-01-23 22:30:26 (GMT) |
commit | 8861502e0746465c4124548681f05969c08f4cae (patch) | |
tree | f9755320ab144c6f965f09bea7c002dc063ba708 /Lib/test/test_ssl.py | |
parent | cca2732a8216bac0d6ca182fc5a55769af2c5160 (diff) | |
download | cpython-8861502e0746465c4124548681f05969c08f4cae.zip cpython-8861502e0746465c4124548681f05969c08f4cae.tar.gz cpython-8861502e0746465c4124548681f05969c08f4cae.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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 30af08d..879d6fd 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -3054,9 +3054,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) |