예제 #1
0
파일: test_core.py 프로젝트: msgoff/sympy
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
예제 #3
0
def test_tryit():
    def rl(expr):
        assert False
    safe_rl = tryit(rl)
    assert safe_rl(1) == 1