def test_isfinite(): a = SparseArray.fromlist(random_lst(p=0.5)) b = SparseArray.fromlist(random_lst(p=0.5)) c = a / b assert a.isfinite() assert b.isfinite() assert not c.isfinite()