Skip OpenCL test if unavailable

This commit is contained in:
Biryuzovye Kleshni 2018-06-23 15:53:06 +00:00
parent 43f7e1e7a1
commit 30e7df6094

View File

@ -80,7 +80,11 @@ class TestUtils(unittest.TestCase):
class TestSolver(unittest.TestCase):
def setUp(self):
try:
self.solver = self.Solver(codePath)
except gpusolver.GPUSolverError:
self.skipTest("OpenCL unavailable")
self.solver.setParallelism(1)
def testSearch(self):