Skip to content

Commit 9e84908

Browse files
committed
FIX numpy.testing.assert_not_equal doesn't exist
1 parent db9fd0e commit 9e84908

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/tests/test_compare_images.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import shutil
66

7-
from numpy.testing import assert_equal, assert_not_equal, assert_almost_equal
7+
from numpy.testing import assert_equal, assert_almost_equal
88

99
from matplotlib.testing.compare import compare_images
1010
from matplotlib.testing.decorators import _image_directories
@@ -37,8 +37,8 @@ def image_comparison_expect_rms(im1, im2, tol, expect_rms):
3737
if expect_rms is None:
3838
assert_equal(None, results)
3939
else:
40-
assert_not_equal(None, results)
41-
assert_almost_equal(expect_rms, results['rms'], places=4)
40+
assert results is not None
41+
assert_almost_equal(expect_rms, results['rms'], decimal=4)
4242

4343

4444
def test_image_compare_basic():

0 commit comments

Comments
 (0)