()
| 25 | |
| 26 | |
| 27 | def test_asarray_tuplesafe() -> None: |
| 28 | res = _asarray_tuplesafe(("a", 1)) |
| 29 | assert isinstance(res, np.ndarray) |
| 30 | assert res.ndim == 0 |
| 31 | assert res.item() == ("a", 1) |
| 32 | |
| 33 | res = _asarray_tuplesafe([(0,), (1,)]) |
| 34 | assert res.shape == (2,) |
| 35 | assert res[0] == (0,) |
| 36 | assert res[1] == (1,) |
| 37 | |
| 38 | |
| 39 | class CustomIndex(Index): |
nothing calls this directly
no test coverage detected
searching dependent graphs…