Skip to content

Commit

Permalink
test tweaks for NumpyArrayContext
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikcfd authored and inducer committed Sep 1, 2022
1 parent d22dddc commit dba4f53
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test_arraycontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from arraycontext.pytest import (_PytestPyOpenCLArrayContextFactoryWithClass,
_PytestPytatoPyOpenCLArrayContextFactory,
_PytestEagerJaxArrayContextFactory,
_PytestPytatoJaxArrayContextFactory)
_PytestPytatoJaxArrayContextFactory,
_PytestPytatoPyOpenCLArrayContextFactory,
_PytestNumpyArrayContextFactory)

Expand Down Expand Up @@ -1138,7 +1138,11 @@ def test_flatten_with_leaf_class(actx_factory):
# {{{ test from_numpy and to_numpy

def test_numpy_conversion(actx_factory):
from arraycontext import NumpyArrayContext

actx = actx_factory()
if isinstance(actx, NumpyArrayContext):
pytest.skip("Irrelevant tests for NumpyArrayContext")

nelements = 42
ac = MyContainer(
Expand Down Expand Up @@ -1317,6 +1321,8 @@ def test_container_equality(actx_factory):
class Foo:
u: DOFArray

__array_priority__ = 1 # disallow numpy arithmetic to take precedence

@property
def array_context(self):
return self.u.array_context
Expand Down

0 comments on commit dba4f53

Please sign in to comment.