[interpolatable_test] skip unless scipy or munkres are installed

This commit is contained in:
Cosimo Lupo 2017-03-07 11:35:22 +00:00
parent cc08ab1050
commit dbaa7091c0
No known key found for this signature in database
GPG Key ID: B61AAAD0B53A6419

View File

@ -8,7 +8,18 @@ import sys
import tempfile
import unittest
try:
import scipy
except:
scipy = None
try:
import munkres
except ImportError:
munkres = None
@unittest.skipUnless(scipy or munkres, "scipy or munkres not installed")
class InterpolatableTest(unittest.TestCase):
def __init__(self, methodName):
unittest.TestCase.__init__(self, methodName)