Skip to content

Commit

Permalink
refactor series tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CloseChoice authored and ritchie46 committed Nov 28, 2021
1 parent ccaaadb commit 5dc0da2
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 99 deletions.
2 changes: 1 addition & 1 deletion py-polars/polars/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def assert_series_equal(
raise_assert_detail(obj, "Name mismatch", left.name, right.name)

_can_be_subtracted = hasattr(dtype_to_py_type(left.dtype), "__sub__")
if check_exact or not _can_be_subtracted:
if check_exact or not _can_be_subtracted or dtype_to_py_type(left.dtype) == bool:
if any((left != right).to_list()):
raise_assert_detail(
obj, "Exact value mismatch", left=list(left), right=list(right)
Expand Down

0 comments on commit 5dc0da2

Please sign in to comment.