提交 19b21552 编写于 作者: L Lucas Meneghel Rodrigues

Merge pull request #917 from clebergnu/skip_test_output_image_pil

selftests/functional/test_output.py: skip test on absence of PIL library
......@@ -19,6 +19,14 @@ basedir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..')
basedir = os.path.abspath(basedir)
def image_output_uncapable():
try:
import PIL
return False
except ImportError:
return True
class OutputTest(unittest.TestCase):
def setUp(self):
......@@ -258,6 +266,8 @@ class OutputPluginTest(unittest.TestCase):
except OSError:
pass
@unittest.skipIf(image_output_uncapable,
"Uncapable of generating images with PIL library")
def test_gendata(self):
tmpfile = tempfile.mktemp()
try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册