Skip to content

Commit 7240ca4

Browse files
committed
arrays are almost equal
1 parent c737f28 commit 7240ca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_pickle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22
import numpy as np
3-
from numpy.testing import assert_array_equal
3+
from numpy.testing import assert_array_equal, assert_almost_equal
44

55
import ctypes
66

@@ -222,7 +222,7 @@ def test_pickle_transforms(mod, copy_fn):
222222

223223
assert ax1 == ax2
224224
assert_array_equal(ax1.centers, ax2.centers)
225-
assert_array_equal(ax2.centers, ax3.centers)
225+
assert_almost_equal(ax2.centers, ax3.centers, decimal=10)
226226

227227

228228
@pytest.mark.parametrize("copy_fn", copy_fns)

0 commit comments

Comments
 (0)