update test_where_removal (#15872)

don't use UOp.ufix for const_like, it will broadcast dtype soon
This commit is contained in:
chenyu 2026-04-22 14:56:37 -04:00 committed by GitHub
commit 3c8daa9a75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -853,7 +853,7 @@ class TestSymbolic(unittest.TestCase):
def test_where_removal(self):
cond = Variable("a", 0, 3) < 2
u1, u0 = cond.ufix(1), cond.ufix(0)
u1, u0 = cond.const_like(True), cond.const_like(False)
self.helper_test_variable(cond, 0, 1, "(a<2)")
self.helper_test_variable(cond.where(u1, u0), 0, 1, "(a<2)")
self.helper_test_variable(cond.where(u1, u0).where(u1, u0), 0, 1, "(a<2)")