@pytest.mark.skipif((sys.maxsize < (2 ** 31)), reason='sys.maxsize < 2**31 - test requires 64 bit')
def test_buf_too_large(self):
    '\n        When passed a buffer containing >= 2**31 bytes,\n        `Connection.send` bails out as SSL_write only\n        accepts an int for the buffer length.\n        '
    connection = Connection(Context(TLSv1_METHOD), None)
    with pytest.raises(ValueError) as exc_info:
        connection.send(VeryLarge())
    exc_info.match('Cannot send more than .+ bytes at once')
When passed a buffer containing >= 2**31 bytes,
`Connection.send` bails out as SSL_write only
accepts an int for the buffer length.
@pytest.mark.skipif((sys.maxsize < (2 ** 31)), reason='sys.maxsize < 2**31 - test requires 64 bit')
def test_buf_too_large(self):
    '\n        When passed a buffer containing >= 2**31 bytes,\n        `Connection.send` bails out as SSL_write only\n        accepts an int for the buffer length.\n        '
    connection = Connection(Context(TLSv1_METHOD), None)
    with pytest.raises(ValueError) as exc_info:
        connection.send(VeryLarge())
    exc_info.match('Cannot send more than .+ bytes at once')