Lines Matching full:dropwhile
812 self.assertEqual(list(dropwhile(underten, data)), [20, 2, 4, 6, 8])
813 self.assertEqual(list(dropwhile(underten, [])), [])
814 self.assertRaises(TypeError, dropwhile)
815 self.assertRaises(TypeError, dropwhile, operator.pow)
816 self.assertRaises(TypeError, dropwhile, operator.pow, [(4,5)], 'extra')
817 self.assertRaises(TypeError, dropwhile(10, [(4,5)]).next)
818 self.assertRaises(ValueError, dropwhile(errfunc, [(4,5)]).next)
934 for f in (ifilter, ifilterfalse, imap, takewhile, dropwhile, starmap):
966 self.assertEqual(list(dropwhile(lambda x: x<5, [1,4,6,4,1])), [6,4,1])
1058 self.makecycle(dropwhile(bool, [0, a, a]), a)
1318 self.assertEqual(list(dropwhile(isOdd, g(s))), tgt)
1319 self.assertRaises(TypeError, dropwhile, isOdd, X(s))
1320 self.assertRaises(TypeError, list, dropwhile(isOdd, N(s)))
1321 self.assertRaises(ZeroDivisionError, list, dropwhile(isOdd, E(s)))
1405 starmap, islice, takewhile, dropwhile, cycle, compress):