20 lines
854 B
Plaintext
20 lines
854 B
Plaintext
$OpenBSD: patch-OpenSSL_test_test_ssl_py,v 1.1 2011/11/25 20:19:30 eric Exp $
|
|
--- OpenSSL/test/test_ssl.py.orig Fri Sep 2 17:46:13 2011
|
|
+++ OpenSSL/test/test_ssl.py Thu Nov 24 10:42:34 2011
|
|
@@ -1153,13 +1153,13 @@ class ConnectionTests(TestCase, _LoopbackMixin):
|
|
errno instead of raising an exception.
|
|
"""
|
|
port = socket()
|
|
- port.bind(('', 0))
|
|
+ port.bind(('127.0.0.1', 0))
|
|
port.listen(3)
|
|
|
|
clientSSL = Connection(Context(TLSv1_METHOD), socket())
|
|
clientSSL.setblocking(False)
|
|
result = clientSSL.connect_ex(port.getsockname())
|
|
- expected = (EINPROGRESS, EWOULDBLOCK)
|
|
+ expected = (0, EINPROGRESS, EWOULDBLOCK)
|
|
self.assertTrue(
|
|
result in expected, "%r not in %r" % (result, expected))
|
|
|