Skip to content

Commit 53bfe6d

Browse files
committed
update tests to reflect re-wording
1 parent ad9e62d commit 53bfe6d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/tests/frame/test_replace.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,9 @@ def test_replace_with_empty_list(self):
614614
result = df.replace([], np.nan)
615615
assert_frame_equal(result, expected)
616616
# GH 19266
617-
with tm.assert_raises_regex(Exception, "cannot assign mismatch"):
617+
with tm.assert_raises_regex(Exception, "Cannot assign array"):
618618
df.replace({np.nan: []})
619-
with tm.assert_raises_regex(Exception, "cannot assign mismatch"):
619+
with tm.assert_raises_regex(Exception, "Cannot assign array"):
620620
df.replace({np.nan: ['dummy', 'alt']})
621621

622622
def test_replace_series_dict(self):

pandas/tests/series/test_replace.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ def test_replace_with_empty_list(self):
138138
tm.assert_series_equal(result, expected)
139139

140140
# GH 19266
141-
with tm.assert_raises_regex(Exception, "cannot assign mismatch"):
141+
with tm.assert_raises_regex(Exception, "Cannot assign array"):
142142
s.replace({np.nan: []})
143-
with tm.assert_raises_regex(Exception, "cannot assign mismatch"):
143+
with tm.assert_raises_regex(Exception, "Cannot assign array"):
144144
s.replace({np.nan: ['dummy', 'alt']})
145145

146146
def test_replace_mixed_types(self):

0 commit comments

Comments
 (0)