def test_closed(self):
    '\n        If the underlying socket is closed, `Connection.sendall` propagates the\n        write error from the low level write call.\n        '
    (server, client) = loopback()
    server.sock_shutdown(2)
    with pytest.raises(SysCallError) as err:
        server.sendall(b'hello, world')
    if (platform == 'win32'):
        assert (err.value.args[0] == ESHUTDOWN)
    else:
        assert (err.value.args[0] == EPIPE)
If the underlying socket is closed, `Connection.sendall` propagates the
write error from the low level write call.
def test_closed(self):
    '\n        If the underlying socket is closed, `Connection.sendall` propagates the\n        write error from the low level write call.\n        '
    (server, client) = loopback()
    server.sock_shutdown(2)
    with pytest.raises(SysCallError) as err:
        server.sendall(b'hello, world')
    if (platform == 'win32'):
        assert (err.value.args[0] == ESHUTDOWN)
    else:
        assert (err.value.args[0] == EPIPE)