def test_tryit(): def rl(expr): assert False safe_rl = tryit(rl, AssertionError) assert safe_rl(S(1)) == 1
def test_tryit(): def rl(expr): assert False safe_rl = tryit(rl) assert safe_rl(1) == 1