diff --git a/python/samba/tests/krb5/raw_testcase.py b/python/samba/tests/krb5/raw_testcase.py index 2681356f3cf..f433fa4bd4e 100644 --- a/python/samba/tests/krb5/raw_testcase.py +++ b/python/samba/tests/krb5/raw_testcase.py @@ -836,9 +836,6 @@ class RawKerberosTest(TestCase): except socket.error: self.s.close() raise - except IOError: - self.s.close() - raise def connect(self, host, port=None): self.assertNotConnected() @@ -1142,9 +1139,6 @@ class RawKerberosTest(TestCase): except socket.error as e: self._disconnect("send_msg: %s" % e) raise - except IOError as e: - self._disconnect("send_msg: %s" % e) - raise def recv_raw(self, num_recv=0xffff, hexdump=None, timeout=None): rep_pdu = None @@ -1163,9 +1157,6 @@ class RawKerberosTest(TestCase): except socket.error as e: self._disconnect("recv_raw: %s" % e) raise - except IOError as e: - self._disconnect("recv_raw: %s" % e) - raise return rep_pdu def recv_pdu_raw(self, asn1_print=None, hexdump=None, timeout=None):