()
| 81 | |
| 82 | |
| 83 | def test_api_mi_raises(): |
| 84 | # GH 23679 |
| 85 | mi = MultiIndex.from_arrays([["a", "b", "c"]]) |
| 86 | msg = "Can only use .str accessor with Index, not MultiIndex" |
| 87 | with pytest.raises(AttributeError, match=msg): |
| 88 | mi.str |
| 89 | assert not hasattr(mi, "str") |
| 90 | |
| 91 | |
| 92 | @pytest.mark.parametrize("dtype", [object, "category"]) |
nothing calls this directly
no test coverage detected