File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 44
44
from arraycontext .pytest import (_PytestPyOpenCLArrayContextFactoryWithClass ,
45
45
_PytestPytatoPyOpenCLArrayContextFactory ,
46
46
_PytestEagerJaxArrayContextFactory ,
47
- _PytestPytatoJaxArrayContextFactory )
47
+ _PytestPytatoJaxArrayContextFactory ,
48
48
_PytestPytatoPyOpenCLArrayContextFactory ,
49
49
_PytestNumpyArrayContextFactory )
50
50
@@ -1138,7 +1138,11 @@ def test_flatten_with_leaf_class(actx_factory):
1138
1138
# {{{ test from_numpy and to_numpy
1139
1139
1140
1140
def test_numpy_conversion (actx_factory ):
1141
+ from arraycontext import NumpyArrayContext
1142
+
1141
1143
actx = actx_factory ()
1144
+ if isinstance (actx , NumpyArrayContext ):
1145
+ pytest .skip ("Irrelevant tests for NumpyArrayContext" )
1142
1146
1143
1147
nelements = 42
1144
1148
ac = MyContainer (
@@ -1317,6 +1321,8 @@ def test_container_equality(actx_factory):
1317
1321
class Foo :
1318
1322
u : DOFArray
1319
1323
1324
+ __array_priority__ = 1 # disallow numpy arithmetic to take precedence
1325
+
1320
1326
@property
1321
1327
def array_context (self ):
1322
1328
return self .u .array_context
You can’t perform that action at this time.
0 commit comments