Skip to content

Commit 9f108ff

Browse files
committed
TST: avoid some numpy comparison warnings
1 parent 0cacd24 commit 9f108ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/src/testing.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numpy as np
22

33
from pandas import compat
4-
from pandas.core.common import isnull
4+
from pandas.core.common import isnull, array_equivalent
55

66
cdef NUMERIC_TYPES = (
77
bool,
@@ -120,7 +120,7 @@ cpdef assert_almost_equal(a, b, bint check_less_precise=False,
120120
raise_assert_detail(obj, '{0} shapes are different'.format(obj),
121121
a.shape, b.shape)
122122
try:
123-
if np.array_equal(a, b):
123+
if array_equivalent(a, b, strict_nan=True):
124124
return True
125125
except:
126126
pass

0 commit comments

Comments
 (0)