

def test_jsonl_iterator():
    ref = [{
        '4': 4,
    }, {
        '3': 3,
    }, {
        '2': 2,
    }, {
        '1': 1,
    }, {
        
    }]
    jsonl_iter = JSONLIterator(open(JSONL_DATA_PATH), reverse=True)
    jsonl_list = list(ref)
    assert (jsonl_list == ref)

dataset/ETHPy150Open mahmoud/boltons/tests/test_jsonutils.py test_jsonl_iterator/VarMisuse@72/93 `jsonl_iter`->`ref`