Skip to content

Commit 8eb1b27

Browse files
committed
Update testSourceAccelerated.py
1 parent 3ac577f commit 8eb1b27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytissueoptics/rayscattering/tests/testSourceAccelerated.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from mockito import mock, verify, when
88

99
from pytissueoptics import Vector, ScatteringScene, ScatteringMaterial, EnergyLogger, Logger
10-
from pytissueoptics.rayscattering.opencl import OPENCL_AVAILABLE, CONFIG
10+
from pytissueoptics.rayscattering.opencl import CONFIG, OPENCL_OK
1111
from pytissueoptics.rayscattering.source import Source
1212
from pytissueoptics.rayscattering.opencl.CLPhotons import CLPhotons
1313
from pytissueoptics.scene.geometry import Environment
@@ -22,7 +22,7 @@ def wrapper(*args, **kwargs):
2222
return wrapper
2323

2424

25-
@unittest.skipIf(not OPENCL_AVAILABLE, "Requires OpenCL to be available")
25+
@unittest.skipIf(not OPENCL_OK, "OpenCL device not available.")
2626
class TestSourceAccelerated(unittest.TestCase):
2727
SOURCE_ENV = Environment(ScatteringMaterial())
2828
SOURCE_POSITION = Vector(0, 0, 0)

0 commit comments

Comments
 (0)