Simulate numpy.array() behavior
| 129 | choice = self.gen.choice |
| 130 | |
| 131 | class NA(list): |
| 132 | "Simulate numpy.array() behavior" |
| 133 | def __bool__(self): |
| 134 | raise RuntimeError |
| 135 | |
| 136 | with self.assertRaises(IndexError): |
| 137 | choice(NA([])) |
no outgoing calls