Skip to content

Commit 9b394e2

Browse files
committed
TST: test_sum compare of less precise dtypes take 2
1 parent faee760 commit 9b394e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/src/testing.pyx

+1-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ cpdef assert_almost_equal(a, b, bint check_less_precise=False):
121121
dtype_a = np.dtype(type(a))
122122
dtype_b = np.dtype(type(b))
123123
if dtype_a.kind == 'f' and dtype_b == 'f':
124-
if dtype_a.itemsize <= 4 or dtype_b.itemsize <= 4:
125-
decimal = 3
124+
decimal = 3
126125

127126
if np.isinf(a):
128127
assert np.isinf(b), "First object is inf, second isn't"

0 commit comments

Comments
 (0)