BUG: test DatetimeIndex equality correctly

This commit is contained in:
Maya Tydykov
2017-04-04 17:00:16 -04:00
parent a006b4bbab
commit e1d63dcee4
+1 -1
View File
@@ -406,7 +406,7 @@ def check_arrays(x, y, err_msg='', verbose=True, check_dtypes=True):
)
# Fill NaTs with zero for comparison.
x = np.where(x_isnat, np.zeros_like(x), x)
y = np.where(x_isnat, np.zeros_like(x), x)
y = np.where(y_isnat, np.zeros_like(y), y)
return assert_array_equal(x, y, err_msg=err_msg, verbose=verbose)