Skip to content

Commit

Permalink
added msg to TypeError test_to_boolean_array_error (#32103)
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-graham-js authored Feb 20, 2020
1 parent 11164c3 commit 37a7006
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/tests/arrays/test_boolean.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def test_to_boolean_array_missing_indicators(a, b):
)
def test_to_boolean_array_error(values):
# error in converting existing arrays to BooleanArray
with pytest.raises(TypeError):
msg = "Need to pass bool-like value"
with pytest.raises(TypeError, match=msg):
pd.array(values, dtype="boolean")


Expand Down

0 comments on commit 37a7006

Please sign in to comment.