Skip to content

Commit 8b287cf

Browse files
committed
Fixup
1 parent 987bb6c commit 8b287cf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/_testing/asserters.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -888,15 +888,12 @@ def assert_series_equal(
888888
and rtol is lib.no_default
889889
and atol is lib.no_default
890890
):
891-
if (
891+
check_exact = (
892892
is_numeric_dtype(left.dtype)
893893
and not is_float_dtype(left.dtype)
894894
or is_numeric_dtype(right.dtype)
895895
and not is_float_dtype(right.dtype)
896-
):
897-
check_exact = True
898-
else:
899-
check_exact = False
896+
)
900897
elif check_exact is lib.no_default:
901898
check_exact = False
902899

0 commit comments

Comments
 (0)