diff options
Diffstat (limited to 'test/test_tcp.py')
-rw-r--r-- | test/test_tcp.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_tcp.py b/test/test_tcp.py index f8fc6a28..d5506556 100644 --- a/test/test_tcp.py +++ b/test/test_tcp.py @@ -370,13 +370,19 @@ class TestALPN(test.ServerTestBase): ) if OpenSSL._util.lib.Cryptography_HAS_ALPN: - def test_alpn(self): c = tcp.TCPClient(("127.0.0.1", self.port)) c.connect() c.convert_to_ssl(alpn_protos=["foobar"]) assert c.get_alpn_proto_negotiated() == "foobar" + else: + def test_none_alpn(self): + c = tcp.TCPClient(("127.0.0.1", self.port)) + c.connect() + c.convert_to_ssl(alpn_protos=["foobar"]) + assert c.get_alpn_proto_negotiated() == None + class TestSSLTimeOut(test.ServerTestBase): handler = HangHandler |