Lines Matching full:maxlen
54 d = deque(it, maxlen=3)
56 self.assertEqual(repr(d), 'deque([7, 8, 9], maxlen=3)')
67 d = deque(range(200), maxlen=10)
80 d = deque(range(10), maxlen=None)
94 deque(it, maxlen=0)
98 d = deque(maxlen=0)
103 d = deque(maxlen=0)
108 self.assertEqual(deque().maxlen, None)
109 self.assertEqual(deque('abc').maxlen, None)
110 self.assertEqual(deque('abc', maxlen=4).maxlen, 4)
111 self.assertEqual(deque('abc', maxlen=2).maxlen, 2)
112 self.assertEqual(deque('abc', maxlen=0).maxlen, 0)
115 d.maxlen = 10
219 g = deque('abcdef', maxlen=4)
328 d = deque(data, maxlen=len(data))
334 d = deque(elements, maxlen=len(elements)+1)
346 self.assertIsNone(d.maxlen)
352 self.assertIsNone(d.maxlen)
358 self.assertEqual(d.maxlen, 500)
364 self.assertIsNone(d.maxlen)
370 self.assertEqual(d.maxlen, 500)
391 d = deque('abc', maxlen=5)
650 self.assertEqual(e.maxlen, d.maxlen)
659 self.assertEqual(e.maxlen, d.maxlen)
721 for maxlen in range(-1, 6):
723 d = deque(s) if maxlen == -1 else deque(s, maxlen)
726 self.assertEqual(d.maxlen, e.maxlen)
861 d = Deque('abcde', maxlen=4)
886 self.assertEqual(e.maxlen, d.maxlen)