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