Skip to content

Commit 37a7006

Browse files
added msg to TypeError test_to_boolean_array_error (#32103)
1 parent 11164c3 commit 37a7006

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/arrays/test_boolean.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def test_to_boolean_array_missing_indicators(a, b):
131131
)
132132
def test_to_boolean_array_error(values):
133133
# error in converting existing arrays to BooleanArray
134-
with pytest.raises(TypeError):
134+
msg = "Need to pass bool-like value"
135+
with pytest.raises(TypeError, match=msg):
135136
pd.array(values, dtype="boolean")
136137

137138

0 commit comments

Comments
 (0)