Skip to content

Commit 4eabcd6

Browse files
committed
BUG: Set check_exact to true if dtype is int
1 parent 851fea0 commit 4eabcd6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/_testing/asserters.py

+3
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,9 @@ def assert_series_equal(
921921
else:
922922
assert_attr_equal("dtype", left, right, obj=f"Attributes of {obj}")
923923

924+
if is_integer_dtype(left.dtype) and is_integer_dtype(right.dtype):
925+
check_exact = True
926+
924927
if check_exact and is_numeric_dtype(left.dtype) and is_numeric_dtype(right.dtype):
925928
left_values = left._values
926929
right_values = right._values

0 commit comments

Comments
 (0)