Skip to content

Commit

Permalink
arrays are almost equal
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Dec 1, 2019
1 parent c737f28 commit 7240ca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pickle.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
import numpy as np
from numpy.testing import assert_array_equal
from numpy.testing import assert_array_equal, assert_almost_equal

import ctypes

Expand Down Expand Up @@ -222,7 +222,7 @@ def test_pickle_transforms(mod, copy_fn):

assert ax1 == ax2
assert_array_equal(ax1.centers, ax2.centers)
assert_array_equal(ax2.centers, ax3.centers)
assert_almost_equal(ax2.centers, ax3.centers, decimal=10)


@pytest.mark.parametrize("copy_fn", copy_fns)
Expand Down

0 comments on commit 7240ca4

Please sign in to comment.