Skip to content

Commit

Permalink
yask: Run tests only if YASK is available
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Jun 22, 2017
1 parent 3cf50bd commit 80a6620
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_yask.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
import pytest # noqa

from devito import Operator, DenseData, x, y, z
from devito.dle import YaskGrid
from devito.parameters import configuration, defaults
from devito.dle.backends.yask import YaskGrid

pexpect = pytest.importorskip('yask_compiler') # Run only if YASK is available


def setup_module(module):
Expand Down Expand Up @@ -37,7 +39,6 @@ def test_data_movement_nD():
u.data[0, 1, 1] = 1.
assert u.data[0, 0, 0] == 0.
assert u.data[0, 1, 1] == 1.
print u.data
assert np.all(u.data == u.data[:,:,:])
assert 1. in u.data[0]
assert 1. in u.data[0, 1]
Expand Down

0 comments on commit 80a6620

Please sign in to comment.