From 7cacecf3cc2209fa2d637686e46de74eaa870547 Mon Sep 17 00:00:00 2001 From: jreback Date: Sun, 27 Apr 2014 14:56:46 -0400 Subject: [PATCH] TST: test_frame/test_sum not comparing correctly on smaller sized dtypes (GH6982) --- pandas/src/testing.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/src/testing.pyx b/pandas/src/testing.pyx index c573d8b2afbad..38be1970de7b3 100644 --- a/pandas/src/testing.pyx +++ b/pandas/src/testing.pyx @@ -121,7 +121,7 @@ cpdef assert_almost_equal(a, b, bint check_less_precise=False): dtype_a = np.dtype(type(a)) dtype_b = np.dtype(type(b)) if dtype_a.kind == 'f' and dtype_b == 'f': - if dtype_a.itemsize <= 4 and dtype_b.itemsize <= 4: + if dtype_a.itemsize <= 4 or dtype_b.itemsize <= 4: decimal = 3 if np.isinf(a):