Skip OpenCL test if unavailable
This commit is contained in:
parent
43f7e1e7a1
commit
30e7df6094
|
@ -80,7 +80,11 @@ class TestUtils(unittest.TestCase):
|
||||||
|
|
||||||
class TestSolver(unittest.TestCase):
|
class TestSolver(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.solver = self.Solver(codePath)
|
try:
|
||||||
|
self.solver = self.Solver(codePath)
|
||||||
|
except gpusolver.GPUSolverError:
|
||||||
|
self.skipTest("OpenCL unavailable")
|
||||||
|
|
||||||
self.solver.setParallelism(1)
|
self.solver.setParallelism(1)
|
||||||
|
|
||||||
def testSearch(self):
|
def testSearch(self):
|
||||||
|
|
Reference in New Issue
Block a user