(self, seq)
| 1135 | shape=(max_bytes//itemsize + 1,), dtype=dtype) |
| 1136 | |
| 1137 | def _ragged_creation(self, seq): |
| 1138 | # without dtype=object, the ragged object raises |
| 1139 | with pytest.raises(ValueError, match=".*detected shape was"): |
| 1140 | a = np.array(seq) |
| 1141 | |
| 1142 | return np.array(seq, dtype=object) |
| 1143 | |
| 1144 | def test_ragged_ndim_object(self): |
| 1145 | # Lists of mismatching depths are treated as object arrays |
no outgoing calls
no test coverage detected