commit c979915c99ad8e5c28a762cae4b5ae44e43190a4 Author: Isis Lovecruft isis@torproject.org Date: Mon Apr 22 00:10:52 2013 +0000
The socket must be module level global for the test to set options on it. --- nettests/experimental/tls_handshake.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/nettests/experimental/tls_handshake.py b/nettests/experimental/tls_handshake.py index 1b66b45..ac94466 100644 --- a/nettests/experimental/tls_handshake.py +++ b/nettests/experimental/tls_handshake.py @@ -183,6 +183,7 @@ class TLSHandshakeTest(nettest.NetTestCase): yield self.splitInput(line)
def buildSocket(self, addr): + global s ip = IPAddress(addr) ## learn if we're IPv4 or IPv6 if ip.version == 4: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
tor-commits@lists.torproject.org