def test_numpy_slices_distributed_shard_limit():
    logger.info('Test Slicing a 1D list.')
    np_data = [1, 2, 3]
    num = sys.maxsize
    with pytest.raises(ValueError) as err:
        de.NumpySlicesDataset(np_data, num_shards=num, shard_id=0, shuffle=False)
    assert ('Input num_shards is not within the required interval of (1 to 2147483647).' in str(err.value))
def test_numpy_slices_distributed_shard_limit():
    logger.info('Test Slicing a 1D list.')
    np_data = [1, 2, 3]
    num = sys.maxsize
    with pytest.raises(ValueError) as err:
        de.NumpySlicesDataset(np_data, num_shards=num, shard_id=0, shuffle=False)
    assert ('Input num_shards is not within the required interval of (1 to 2147483647).' in str(err.value))