Skip to content

Commit 52eba9f

Browse files
committed
add incorrect series assignment
1 parent 73a69f8 commit 52eba9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/series/indexing/test_indexing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,10 @@ def test_incorrect_assigment():
395395
x = np.random.randn(2, 2)
396396
y = pd.Series(range(2))
397397

398-
msg = r"shape mismatch: value array of shape \(2,2\) could not be broadcast to indexing result of shape \(2,\)"
398+
msg = (
399+
"shape mismatch: value array of shape \(2,2\) could not be"
400+
" broadcast to indexing result of shape \(2,\)"
401+
)
399402
with pytest.raises(ValueError, match=msg):
400403
y.loc[range(2)] = x
401404

0 commit comments

Comments
 (0)