Skip to content

Commit 7ed9688

Browse files
committed
Updated test_join
GH21220
1 parent 687568b commit 7ed9688

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/reshape/merge/test_join.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ def test_join_on_fails_with_wrong_object_type(self, wrong_type):
237237
# Also, parameterized the original test
238238

239239
df = DataFrame({'a': [1, 1]})
240-
with tm.assert_raises_regex(ValueError, str(type(wrong_type))):
240+
with tm.assert_raises_regex(TypeError, str(type(wrong_type))):
241241
merge(wrong_type, df, left_on='a', right_on='a')
242-
with tm.assert_raises_regex(ValueError, str(type(wrong_type))):
242+
with tm.assert_raises_regex(TypeError, str(type(wrong_type))):
243243
merge(df, wrong_type, left_on='a', right_on='a')
244244

245245
def test_join_on_pass_vector(self):

0 commit comments

Comments
 (0)