'Return the argument L{OpenSSL.SSL.Error} will be constructed with for
this case. This is basically just a random OpenSSL implementation
detail. It would be better if this test worked in a way which did not
require this.'

def getHandleErrorCode(self):

    if (requireModule('twisted.protocols.tls') is None):
        if (platform.getType() == 'win32'):
            return errno.WSAENOTSOCK
    return [('SSL    routines', 'SSL_write', 'protocol    is    shutdown')]
