We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47da4c commit 55d732eCopy full SHA for 55d732e
test/test_arraycontext.py
@@ -994,7 +994,11 @@ def test_flatten_array_container_failure(actx_factory):
994
# {{{ test from_numpy and to_numpy
995
996
def test_numpy_conversion(actx_factory):
997
+ from arraycontext import NumpyArrayContext
998
+
999
actx = actx_factory()
1000
+ if isinstance(actx, NumpyArrayContext):
1001
+ pytest.skip("Irrelevant tests for NumpyArrayContext")
1002
1003
nelements = 42
1004
ac = MyContainer(
@@ -1167,6 +1171,8 @@ def test_container_equality(actx_factory):
1167
1171
class Foo:
1168
1172
u: DOFArray
1169
1173
1174
+ __array_priority__ = 1 # disallow numpy arithmetic to take precedence
1175
1170
1176
@property
1177
def array_context(self):
1178
return self.u.array_context
0 commit comments