Skip to content

Commit 677e063

Browse files
update test
1 parent 4bb986a commit 677e063

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/tests/arrays/string_/test_string.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ def test_setitem_validates(cls, dtype):
102102
with pytest.raises(TypeError, match=msg):
103103
arr[0] = 10
104104

105-
if dtype.storage == "python":
106-
msg = "Must provide strings."
107-
else:
108-
msg = "Scalar must be NA or str"
105+
msg = "Must provide strings"
109106
with pytest.raises(TypeError, match=msg):
110107
arr[:] = np.array([1, 2])
111108

0 commit comments

Comments
 (0)