diff options
author | 2014-12-14 10:40:27 -0800 | |
---|---|---|
committer | 2014-12-14 10:40:27 -0800 | |
commit | 8357fb2ccc3f326952e44adeb7caff9922ff051e (patch) | |
tree | dc6c594f7882e41eda39b5d3819ea8772b272d34 /lib-python | |
parent | Attempted to resolve merge conflicts in ssl.py (diff) | |
download | pypy-8357fb2ccc3f326952e44adeb7caff9922ff051e.tar.gz pypy-8357fb2ccc3f326952e44adeb7caff9922ff051e.tar.bz2 pypy-8357fb2ccc3f326952e44adeb7caff9922ff051e.zip |
Resolved merge conflicts in test_ssl.py
Diffstat (limited to 'lib-python')
-rw-r--r-- | lib-python/2.7/test/test_ssl.py | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/lib-python/2.7/test/test_ssl.py b/lib-python/2.7/test/test_ssl.py index cbf5449367..46342cc6c0 100644 --- a/lib-python/2.7/test/test_ssl.py +++ b/lib-python/2.7/test/test_ssl.py @@ -1995,51 +1995,6 @@ else: class ThreadedTests(unittest.TestCase): -<<<<<<< local - def test_rude_shutdown(self): - """A brutal shutdown of an SSL server should raise an IOError - in the client when attempting handshake. - """ - listener_ready = threading.Event() - listener_gone = threading.Event() - - s = socket.socket() - port = test_support.bind_port(s, HOST) - - # `listener` runs in a thread. It sits in an accept() until - # the main thread connects. Then it rudely closes the socket, - # and sets Event `listener_gone` to let the main thread know - # the socket is gone. - def listener(): - s.listen(5) - listener_ready.set() - s.accept() - s.close() - listener_gone.set() - - def connector(): - listener_ready.wait() - c = socket.socket() - c.connect((HOST, port)) - listener_gone.wait() - # XXX why is it necessary? - test_support.gc_collect() - try: - ssl_sock = ssl.wrap_socket(c) - except IOError: - pass - else: - self.fail('connecting to closed SSL socket should have failed') - - t = threading.Thread(target=listener) - t.start() - try: - connector() - finally: - t.join() - -======= ->>>>>>> other @skip_if_broken_ubuntu_ssl def test_echo(self): """Basic test of an SSL client connecting to a server""" |