Skip to content

Commit fd7d86f

Browse files
steppilucascolley
authored andcommitted
TST: Make sure test_static_tests_wrapped doesn't fail
1 parent 2168009 commit fd7d86f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_testing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ def test_static_methods_preserved(self, xp: ModuleType):
399399
bar = foo.k(x)
400400
xp_assert_equal(bar.x, 2.0 * foo.x)
401401

402+
@pytest.mark.skip_xp_backend(Backend.DASK, reason="calls dask.compute()")
402403
def test_static_methods_wrapped(self, xp: ModuleType, library: Backend):
403404
x = xp.asarray([1.1, 2.2, 3.3])
404405
foo = B(x)
@@ -408,7 +409,8 @@ def test_static_methods_wrapped(self, xp: ModuleType, library: Backend):
408409
TypeError, match="Attempted boolean conversion of traced array"
409410
):
410411
assert isinstance(foo.j(x), B)
411-
assert isinstance(foo.j(x), B)
412+
else:
413+
assert isinstance(foo.j(x), B)
412414

413415

414416
def dask_raises(x: Array) -> Array:

0 commit comments

Comments
 (0)