Skip to content

Commit

Permalink
TST: avoid some numpy comparison warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Sep 6, 2015
1 parent 0cacd24 commit 9f108ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/src/testing.pyx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np

from pandas import compat
from pandas.core.common import isnull
from pandas.core.common import isnull, array_equivalent

cdef NUMERIC_TYPES = (
bool,
Expand Down Expand Up @@ -120,7 +120,7 @@ cpdef assert_almost_equal(a, b, bint check_less_precise=False,
raise_assert_detail(obj, '{0} shapes are different'.format(obj),
a.shape, b.shape)
try:
if np.array_equal(a, b):
if array_equivalent(a, b, strict_nan=True):
return True
except:
pass
Expand Down

0 comments on commit 9f108ff

Please sign in to comment.