| 1081 | def test_false_len_sequence(self): |
| 1082 | # gh-7264, segfault for this example |
| 1083 | class C: |
| 1084 | def __getitem__(self, i): |
| 1085 | raise IndexError |
| 1086 | def __len__(self): |
| 1087 | return 42 |
| 1088 | |
| 1089 | a = np.array(C()) # segfault? |
| 1090 | assert_equal(len(a), 0) |
no outgoing calls