From: Benjamin Peterson Date: Wed, 20 Aug 2014 19:49:08 +0000 (-0500) Subject: allow any socket error for rude shutdown test X-Git-Tag: v2.7.9rc1~289 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e208b57078cf1996e21ee8e5bfa0dafae9b75b11;p=thirdparty%2FPython%2Fcpython.git allow any socket error for rude shutdown test --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index b31bd983cbdb..a5785d00ddfe 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -2134,7 +2134,7 @@ else: listener_gone.wait() try: ssl_sock = ssl.wrap_socket(c) - except ssl.SSLError: + except socket.error: pass else: self.fail('connecting to closed SSL socket should have failed')