We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48146ad commit 5014559Copy full SHA for 5014559
pandas/tests/indexes/test_any_index.py
@@ -33,8 +33,22 @@ def test_mutability(index):
33
index[0] = index[0]
34
35
36
-def test_wrong_number_names(index):
37
- names = index.nlevels * ["apple", "banana", "carrot"]
+def test_values_mutability(indices):
+ if not len(indices):
38
+ return
39
+ with pytest.raises(ValueError):
40
+ indices.values[0] = indices[0]
41
+
42
43
+def test_array_mutability(indices):
44
45
46
47
+ indices.array[0] = indices[0]
48
49
50
+def test_wrong_number_names(indices):
51
+ names = indices.nlevels * ["apple", "banana", "carrot"]
52
with pytest.raises(ValueError, match="^Length"):
53
index.names = names
54
0 commit comments