Lines Matching refs:xrange
722 argtypes = ['', 'abc', '', xrange(0), xrange(4), dict(a=1, b=2, c=3),
748 self.assertEqual(zip(xrange(3),repeat('a')),
809 self.assertEqual(list(islice(xrange(100), *args)), range(*args))
816 self.assertEqual(list(islice(xrange(100), *args)), range(*tgtargs))
819 self.assertEqual(list(islice(xrange(10), None)), range(10))
820 self.assertEqual(list(islice(xrange(10), None, None)), range(10))
821 self.assertEqual(list(islice(xrange(10), None, None, None)), range(10))
822 self.assertEqual(list(islice(xrange(10), 2, None)), range(2, 10))
823 self.assertEqual(list(islice(xrange(10), 1, None, 2)), range(1, 10, 2))
835 self.assertRaises(TypeError, islice, xrange(10))
836 self.assertRaises(TypeError, islice, xrange(10), 1, 2, 3, 4)
837 self.assertRaises(ValueError, islice, xrange(10), -5, 10, 1)
838 self.assertRaises(ValueError, islice, xrange(10), 1, -5, -1)
839 self.assertRaises(ValueError, islice, xrange(10), 1, 10, -1)
840 self.assertRaises(ValueError, islice, xrange(10), 1, 10, 0)
841 self.assertRaises(ValueError, islice, xrange(10), 'a')
842 self.assertRaises(ValueError, islice, xrange(10), 'a', 1)
843 self.assertRaises(ValueError, islice, xrange(10), 1, 'a')
844 self.assertRaises(ValueError, islice, xrange(10), 'a', 1, 1)
845 self.assertRaises(ValueError, islice, xrange(10), 1, 'a', 1)
891 for i in xrange(n):
906 for i in xrange(100):
912 for i in xrange(100):
917 for j in xrange(5): # test randomly interleaved
940 a, b, c = tee(xrange(2000), 3)
941 for i in xrange(100):
951 for n in xrange(5):
971 a, b = tee(xrange(10))
1098 it = iter(xrange(start, stop, step))
1103 for i, element in izip(xrange(start), iterable):
1113 for i, element in izip(xrange(i + 1, stop), iterable):
1122 it = iter(xrange(10))
1125 it = iter(xrange(10))
1182 for i, j in groupby(xrange(n), key=keyfunc):
1311 for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)):
1320 for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)):
1329 for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)):
1335 for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)):
1346 for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)):
1354 for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)):
1362 for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)):
1370 for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)):
1379 for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)):
1388 for s in (range(10), range(0), range(100), (7,11), xrange(20,50,5)):
1397 for s in ("12345", "", range(1000), ('do', 1.2), xrange(2000,2200,5)):
1405 for s in (range(10), range(0), range(100), (7,11), xrange(20,50,5)):
1414 for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)):
1426 for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)):
1438 for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)):
1519 it = chain.from_iterable(() for unused in xrange(10000000))
1830 for i in xrange(len(counts)):