Skip to content

Commit 0a9d495

Browse files
committed
Force environment dependent xfail test to fail
1 parent 049046d commit 0a9d495

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/tensor/test_math.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,9 +1411,7 @@ def _grad_list(self):
14111411
"uint32",
14121412
pytest.param(
14131413
"uint64",
1414-
marks=pytest.mark.xfail(
1415-
condition=config.mode != "FAST_COMPILE", reason="Fails due to #770"
1416-
),
1414+
marks=pytest.mark.xfail(reason="Fails due to #770"),
14171415
),
14181416
),
14191417
)
@@ -1433,6 +1431,10 @@ def test_uint(self, dtype):
14331431
assert max_out.dtype == dtype
14341432
i_max = function([n], max_out)(data)
14351433
assert i_max == itype.max
1434+
if dtype == "uint64":
1435+
assert (
1436+
0
1437+
) # It's not failing in all the CIs but we have XPASS(strict) enabled
14361438

14371439
@pytest.mark.xfail(
14381440
condition=config.mode != "FAST_COMPILE", reason="Fails due to #770"

0 commit comments

Comments
 (0)