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
207 g = deque('abcdef', maxlen=4)
308 d = deque(data, maxlen=len(data))
314 d = deque(elements, maxlen=len(elements)+1)
326 self.assertIsNone(d.maxlen)
332 self.assertIsNone(d.maxlen)
338 self.assertEqual(d.maxlen, 500)
344 self.assertIsNone(d.maxlen)
350 self.assertEqual(d.maxlen, 500)
371 d = deque('abc', maxlen=5)
630 self.assertEqual(e.maxlen, d.maxlen)
639 self.assertEqual(e.maxlen, d.maxlen)
701 for maxlen in range(-1, 6):
703 d = deque(s) if maxlen == -1 else deque(s, maxlen)
706 self.assertEqual(d.maxlen, e.maxlen)
841 d = Deque('abcde', maxlen=4)
866 self.assertEqual(e.maxlen, d.maxlen)