Skip to content

Commit 55d732e

Browse files
committed
test tweaks for NumpyArrayContext
1 parent c47da4c commit 55d732e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_arraycontext.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,11 @@ def test_flatten_array_container_failure(actx_factory):
994994
# {{{ test from_numpy and to_numpy
995995

996996
def test_numpy_conversion(actx_factory):
997+
from arraycontext import NumpyArrayContext
998+
997999
actx = actx_factory()
1000+
if isinstance(actx, NumpyArrayContext):
1001+
pytest.skip("Irrelevant tests for NumpyArrayContext")
9981002

9991003
nelements = 42
10001004
ac = MyContainer(
@@ -1167,6 +1171,8 @@ def test_container_equality(actx_factory):
11671171
class Foo:
11681172
u: DOFArray
11691173

1174+
__array_priority__ = 1 # disallow numpy arithmetic to take precedence
1175+
11701176
@property
11711177
def array_context(self):
11721178
return self.u.array_context

0 commit comments

Comments
 (0)