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):
|
||||
def setUp(self):
|
||||
try:
|
||||
self.solver = self.Solver(codePath)
|
||||
except gpusolver.GPUSolverError:
|
||||
self.skipTest("OpenCL unavailable")
|
||||
|
||||
self.solver.setParallelism(1)
|
||||
|
||||
def testSearch(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user