

@unittest.skipUnless(RUN_INDEXES, 'RUN_INDEXES is 0')
def test_index_regex(self):
    if (not self.is_2i_supported()):
        raise unittest.SkipTest('2I is not supported')
    (bucket, o1, o2, o3, o4) = self._create_index_objects()
    results = []
    for item in bucket.stream_index('field1_bin', 'val0', 'val5', term_regex='.*l2', return_terms=True):
        o4.extend(item)
    self.assertEqual([('val2', o2.key)], results)

dataset/ETHPy150Open basho/riak-python-client/riak/tests/test_2i.py TwoITests.test_index_regex/VarMisuse@88/142 `results`->`o4`