# HG changeset patch # Parent 58266f5101cc984f837075442a510d595972a5d5 Issue #26173: Remove dead exception handler in bad_cert_test() Now that socket.error and IOError are both the same as OSError, we cannot raise IOError and catch socket.error at the same time. diff -r 58266f5101cc Lib/test/test_ssl.py --- a/Lib/test/test_ssl.py Tue Jan 26 21:46:03 2016 -0800 +++ b/Lib/test/test_ssl.py Thu Jan 28 11:42:20 2016 +0000 @@ -2112,11 +2112,6 @@ except OSError as x: if support.verbose: sys.stdout.write("\nOSError is %s\n" % x.args[1]) - except OSError as x: - if x.errno != errno.ENOENT: - raise - if support.verbose: - sys.stdout.write("\OSError is %s\n" % str(x)) else: raise AssertionError("Use of invalid cert should have failed!")