We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3f34df commit 5433532Copy full SHA for 5433532
1 file changed
tests/test_spy.py
@@ -1,7 +1,7 @@
1
import tempfile
2
from pathlib import Path
3
4
-import imageio
+import imageio.v2 as iio
5
import numpy
6
import pytest
7
from scipy import sparse
@@ -32,7 +32,7 @@ def test_png(ref, kwargs):
32
with tempfile.TemporaryDirectory() as temp_dir:
33
filepath = Path(temp_dir) / "test.png"
34
matplotx.spy(M, filename=filepath, **kwargs)
35
- im = imageio.imread(filepath)
+ im = iio.imread(filepath)
36
y = numpy.random.randint(0, 100, size=numpy.prod(im.shape))
37
assert numpy.dot(y, im.flatten()) == ref
38
0 commit comments