Skip to content

Commit 4e5f160

Browse files
committed
TST/BUG: handle NA equivalence when check_dtype=False without skipping metadata (GH#61473)
1 parent 9f7bcb3 commit 4e5f160

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pandas/_testing/asserters.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,6 @@ def assert_series_equal(
11061106
obj=str(obj),
11071107
)
11081108
elif not check_dtype:
1109-
# When dtype checks are off, treat all missing sentinels as equal.
11101109
left_na = np.asarray(left.isna())
11111110
right_na = np.asarray(right.isna())
11121111
assert_numpy_array_equal(
@@ -1125,17 +1124,6 @@ def assert_series_equal(
11251124
obj=str(obj),
11261125
index_values=left.index,
11271126
)
1128-
return
1129-
else:
1130-
_testing.assert_almost_equal(
1131-
left._values,
1132-
right._values,
1133-
rtol=rtol,
1134-
atol=atol,
1135-
check_dtype=bool(check_dtype),
1136-
obj=str(obj),
1137-
index_values=left.index,
1138-
)
11391127
else:
11401128
_testing.assert_almost_equal(
11411129
left._values,

0 commit comments

Comments
 (0)