remove skip LLVM in test_div_int (#9686)

This commit is contained in:
chenyu
2025-04-02 04:15:00 -04:00
committed by GitHub
parent bc3bfcbad4
commit 3b8d923692

View File

@@ -571,7 +571,7 @@ class TestOps(unittest.TestCase):
np.testing.assert_equal(x.numpy(), 2**64 - 1)
# 1 // 0 is device dependent, but it should not raise
Tensor([1]).idiv(1).realize()
if not (CI and (Device.DEFAULT=="LLVM" or getenv("PTX"))): # TODO: crashed in CI
if not (CI and getenv("PTX")): # TODO: crashed in PTX CI
# ... because if might be in a where branch that the output is well defined
t = Tensor([-1, 0, 1, 2])
np.testing.assert_equal((t > 0).where(1//t, t).numpy(), [-1, 0, 1, 0])