| 105 | self.assertRaises(TypeError, d.count) # too few args |
| 106 | self.assertRaises(TypeError, d.count, 1, 2) # too many args |
| 107 | class BadCompare: |
| 108 | def __eq__(self, other): |
| 109 | raise ArithmeticError |
| 110 | d = deque([1, 2, BadCompare(), 3]) |
| 111 | self.assertRaises(ArithmeticError, d.count, 2) |
| 112 | d = deque([1, 2, 3]) |
no outgoing calls
searching dependent graphs…