Thanks to visit codestin.com Credit goes to github.com
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 45493c4 commit 51c2b2cCopy full SHA for 51c2b2c
1 file changed
lib/matplotlib/tests/test_image.py
@@ -10,6 +10,12 @@
10
import io
11
import os
12
13
+try:
14
+ from PIL import Image
15
+ HAS_PIL = True
16
+except ImportError:
17
+ HAS_PIL = False
18
+
19
@image_comparison(baseline_images=['image_interps'])
20
def test_image_interps():
21
'make the basic nearest, bilinear and bicubic interps'
@@ -76,6 +82,7 @@ def test_image_python_io():
76
82
buffer.seek(0)
77
83
plt.imread(buffer)
78
84
85
+@knownfailureif(not HAS_PIL)
79
86
def test_imread_pil_uint16():
80
87
img = plt.imread(os.path.join(os.path.dirname(__file__),
81
88
'baseline_images/test_image/uint16.tif'))
0 commit comments