

def test_1d_random(self):
    choices = ((map((lambda x: repr(x)), range(50)) + range(50)) + ([''] * 50))
    for i in range(100):
        try:
            beg = random.choice(choices)
            end = random.choice(choices)
            step = random.choice(choices)
            if (step in ['0', 0]):
                step = 'None'
            self.generic_1d(('a[%s:%s:%s]' % (beg, end, step)))
        except IndexError:
            pass

dataset/ETHPy150Open scipy/scipy/scipy/weave/tests/test_size_check.py TestDummyArrayIndexing.test_1d_random/original