This is a mock numpy object that raises an error when there is an attempt to convert it to a boolean.
| 177 | |
| 178 | |
| 179 | class MockNumPy: |
| 180 | """This is a mock numpy object that raises an error when there is an attempt |
| 181 | to convert it to a boolean.""" |
| 182 | |
| 183 | def __nonzero__(self): |
| 184 | raise ValueError( |
| 185 | "The truth value of an array with more than one " |
| 186 | "element is ambiguous. Use a.any() or a.all()" |
| 187 | ) |
| 188 | |
| 189 | |
| 190 | class TestDictKeyCompletion(unittest.TestCase): |
no outgoing calls